emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] New function org-speed-command-add for adding/modifying spee


From: Ihor Radchenko
Subject: Re: [PATCH] New function org-speed-command-add for adding/modifying speed commands
Date: Tue, 03 May 2022 18:24:04 +0800

Shankar Rao <shankar.rao@gmail.com> writes:

> Over the weekend I thought about this issue of configuring
> `org-speed-commands' more easily, and I believe I have come up with a
> simpler solution that I have provided in the attached patch.
>
> This patch creates a new function `org-speed-command-add' that can be
> used to add new speed command shortcuts to `org-speed-commands', as
> well as modify existing shortcuts. This function takes as argument an
> alist in the same format as `org-speed-commands'. For each command for
> which the shortcut key is already present in `org-speed-commands', the
> old command is replaced with the new command at the same position.
> Commands with brand new shortcut keys are added to the user section of
> `org-speed-commands'.
>
> I believe this patch strikes a balance between power users, who can
> still directly customize `org-speed-commands', and non-experts, who
> may want to add/modify some speed commands without having to
> understand the structure and organization of `org-speed-commands'.

I am not sure about usefulness of the proposed command. For non-power
users, we have cusomize interface. It should work just fine without a
need to introduce another function.

Also, org-speed-command-add may behave strangely if the argument
contains descriptive headline like ("My command group title") as its
first element.

Best,
Ihor



reply via email to

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