[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Poll: new keybinding for org-insert-structure-template?

From: Eric Abrahamsen
Subject: Re: [O] Poll: new keybinding for org-insert-structure-template?
Date: Mon, 18 Dec 2017 10:23:43 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eric Abrahamsen <address@hidden> writes:

> Rasmus <address@hidden> writes:
>> Kaushal Modi <address@hidden> writes:
>>> On Fri, Dec 15, 2017 at 6:23 AM Rasmus <address@hidden> wrote:
>>>> The only way it’s "bad" is in the sense it limits the flexibility of
>>>> snippets, like "<s".  As you point out, if I add "<sr" as an "src R" block
>>>> I can no longer have "<s" as plain "src" block.
> I don't see any way around that. Any system that allows string keys of
> arbitrary length is going to run into that problem.

One possible fix, a bit arbitrary: in the default value, provide <TAB>
as an artificial "stop key" in the sub-menus. So "s" starts the "source
code" sub-menu, and a <TAB> after that simply inserts "#+begin_src", and
leaves point after that.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]