all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Michael Ax <michaelax@gmail.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: speed-keys access tweak
Date: Sun, 14 Jan 2018 10:05:38 +0100	[thread overview]
Message-ID: <87vag46c9p.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <e8226067-af4b-0a74-c751-80a14664ef0d@gMail.com> (Michael Ax's message of "Fri, 12 Jan 2018 17:53:28 +0100")

Hello,

Michael Ax <michaelax@gmail.com> 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

      reply	other threads:[~2018-01-14  9:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-12 16:53 speed-keys access tweak Michael Ax
2018-01-14  9:05 ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vag46c9p.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=michaelax@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.