On Mon, May 9, 2016 at 11:43 AM Marcin Borkowski <mb...@mbork.pl> wrote:

> I guess that OP would like some key to do this only when in plain list.
> It's slightly less easy then, and the preferred way (advice/new
> function/maybe some hook) might depend on the particular choice of the
> keys.
>

Right, the define-key solution was under the assumption that M-{ and M-}
already do what the OP needs.

They are bound to org-backward-element and org-forward-element by default
in org-mode-map. So if M-{/M-} already does what he want, he can simply
bind the same commands to keys of his liking.

Actually org uses org-defkey instead of define-key for these bindings. But
they are not context-aware keys; they apply to org-mode-map:

http://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/org.el?id=8127b3c30d8a2217468068a73f23bfa4945573dc#n19895

-- 

-- 
Kaushal Modi

Reply via email to