Re: [textadept] Re: Design suggestions

From: Robert <ro....at.web.de>
Date: Mon, 4 Jul 2011 21:26:21 +0200

On Mon, Jul 4, 2011 at 8:53 PM, mitchell <c....at.caladbolg.net> wrote:
> Hi,
>
> On Sun, 3 Jul 2011, anton wrote:
>>
>> one more thing, quotes (') are doubled by default.
>> What does one use to type short forms (e.g. I'm, don't) in English?
>
> Either turn off _m.textadept.editing.AUTOPAIR or press ' followed by
> 'delete' :)
>
> mitchell
>

You can also set these language-specific. In my markdown module I have:
-- Auto-matching chars.
-- Match `<` for embedded HTML, don't match `'`.
m_editing.char_matches.markdown = {
  [40] = ')', [91] = ']', [123] = '}', [34] = '"', [60] = '>'
}

Something similar will work well for LaTeX (sorry, I haven't cleaned
up and released my TeX-related modules yet...)

Robert
Received on Mon 04 Jul 2011 - 15:26:21 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:12:40 EST