Variable: markdown-special-ctrl-a/e
markdown-special-ctrl-a/e is a customizable variable defined in
markdown-mode.el.
Value
nil
Documentation
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. In an item, this will be the position after bullet
and check-box, if any. 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 closing tags in the headline. A second C-e will then jump to
the true end of the line, after closing tags. This also means
that, when this variable is non-nil, C-e also will never jump
beyond the end of the heading of a folded section, i.e. not after
the ellipses.
When set to the symbol reversed, the first C-a or C-e works
normally, going to the true line boundary first. 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.
This variable was added, or its default value changed, in markdown-mode version 2.7.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defcustom markdown-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. In an item, this will be the position after bullet
and check-box, if any. 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 closing tags in the headline. A second `C-e' will then jump to
the true end of the line, after closing tags. This also means
that, when this variable is non-nil, `C-e' also will never jump
beyond the end of the heading of a folded section, i.e. not after
the ellipses.
When set to the symbol `reversed', the first `C-a' or `C-e' works
normally, going to the true line boundary first. 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 'markdown
:type '(choice
(const :tag "off" nil)
(const :tag "on: after hashes/bullet and before closing tags first" t)
(const :tag "reversed: 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 "on: after hashes/bullet first" t)
(const :tag "reversed: before hashes/bullet first" reversed))
(choice :tag "Special C-e"
(const :tag "off" nil)
(const :tag "on: before closing tags first" t)
(const :tag "reversed: after closing tags first" reversed))))
:package-version '(markdown-mode . "2.7"))