解
您需要将org-special-ctrl-a/e
变量设置为t
。
文献资料
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 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 tags in the headline. A second `C-e' will then jump to the
true end of the line, after any 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.
例
下面进行评估,
(setq org-special-ctrl-a/e t)
(1)初始状态(▮代表点)
* TODO ab▮c :test:
(2)首先 C-a
* TODO ▮abc :test:
(3)秒后 C-a
▮* TODO abc :test:
(4)首先 C-e
* TODO abc▮ :test:
(5)秒后 C-e
* TODO abc :test:▮
相关:用省略号后的点扩展组织模式子树?
M-e
(即移至句子的结尾)。