[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] speed-keys access tweak
From: |
Nicolas Goaziou |
Subject: |
Re: [O] speed-keys access tweak |
Date: |
Sun, 14 Jan 2018 10:05:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
Michael Ax <address@hidden> writes:
> With the (bolp) check snipped, org-speed-commands
> work up to the end of org-outline-regexp.
>
> (defun org-speed-command-activate (keys)
> (when (or (looking-at org-outline-regexp)
> (and (functionp org-use-speed-commands)
> (funcall org-use-speed-commands)))
> (cdr (assoc keys (append org-speed-commands-user
> org-speed-commands-default)))))
>
> Works for me. Could this be legit --- or safer?
It would also work in the non-desirable following case, where X is
point:
*** Headline x*** Text
Besides, according the manual,
Single keys can be made to execute commands when the cursor is at the
beginning of a headline, i.e., before the first star.
Regards,
--
Nicolas Goaziou