From: Nick Dokos <nicholas.dokos@hp.com>
To: Brian van den Broek <vanden@gmail.com>
Cc: bastienguerry@googlemail.com, emacs-orgmode@gnu.org,
Rainer Stengele <rainer.stengele@diplan.de>
Subject: Re: Re: Org Special Ctrl A/E, option "reversed"
Date: Wed, 15 Jul 2009 13:52:46 -0400 [thread overview]
Message-ID: <18374.1247680366@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Brian van den Broek <vanden@gmail.com> of "Wed, 15 Jul 2009 12:32:15 EDT." <4A5E048F.60203@gmail.com>
Brian van den Broek <vanden@gmail.com> wrote:
> Bastien:
>
> As you are wearing the Carsten-hat for the moment, it strikes me that
> Rainer's expectation that a documented value for the variable would be
> available in the customization value-menu is reasonable. Perhaps the
> reversed option ought to be added to that menu? Alas, I can't
> patch---it really is but a bit of elisp that I've got.
>
Here's the defcustom for this variable (found by C-h v org-special-ctrl-a/e <RET>
and then clicking on the file link in the *Help* buffer):
,----
| (defcustom org-special-ctrl-a/e nil
| "Non-nil means `C-a' and `C-e' behave specially in headlines and items.
|
| When t, `C-a' will bring back the cursor to the beginning of the
| headline text, i.e. after the stars and after a possible TODO keyword.
| In an item, this will be the position after the bullet.
| When the cursor is already at that position, another `C-a' will bring
| it to the beginning of the line.
|
| `C-e' will jump to the end of the headline, ignoring the presence of tags
| in the headline. A second `C-e' will then jump to the true end of the
| line, after any tags.
|
| When set to the symbol `reversed', the first `C-a' or `C-e' works normally,
| and only a directly following, identical keypress will bring the cursor
| to the special positions.
|
| This may also be a cons cell where the behavior for `C-a' and `C-e' is
| set separately."
| :group 'org-edit-structure
| :type '(choice
| (const :tag "off" nil)
| (const :tag "after stars/bullet and before tags first" t)
| (const :tag "true line boundary first" reversed)
| (cons :tag "Set C-a and C-e separately"
| (choice :tag "Special C-a"
| (const :tag "off" nil)
| (const :tag "after stars/bullet first" t)
| (const :tag "before stars/bullet first" reversed))
| (choice :tag "Special C-e"
| (const :tag "off" nil)
| (const :tag "before tags first" t)
| (const :tag "after tags first" reversed)))))
|
`----
As you can see, the reversed setting is available from the value menu,
under the tag "true line boundary first". So it is there, but perhaps
not obviously.
HTH,
Nick
PS BTW, I share your general dislike of the customization interface, but
I have always thought that I am in the minority on that.
next prev parent reply other threads:[~2009-07-15 17:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 9:25 Org Special Ctrl A/E, option "reversed" Rainer Stengele
2009-07-15 3:47 ` Brian van den Broek
2009-07-15 5:48 ` Rainer Stengele
2009-07-15 16:32 ` Brian van den Broek
2009-07-15 17:52 ` Nick Dokos [this message]
2009-07-15 18:15 ` Samuel Wales
2009-07-16 20:13 ` Bastien
2009-07-16 20:20 ` Bastien
2009-07-15 5:53 ` Rainer Stengele
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=18374.1247680366@gamaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=bastienguerry@googlemail.com \
--cc=emacs-orgmode@gnu.org \
--cc=rainer.stengele@diplan.de \
--cc=vanden@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.