Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > I think the best we can do is to hijack M-a/M-e when `orgstruct-mode' is > used. `orgtbl-mode' already does it actually.
I tried to do this, but somehow I cannot get the magic that builds orgstruct-mode-map to recognize org-{forward,backward}-sentence. I think it has to do with the Meta. Other Meta bindings use ?\e and the numeric value that is picked up for \M-a is pretty large... Sometimes I managed to get org-backward-sentence in the orgstruct-mode-map, but it just wans't picked up. Any hints would be appreciated. Rasmus My test: (progn (add-to-list 'load-path "~/src/code/org-mode/lisp") (require 'org) (require 'cl) (mapcar (lambda (mode) (with-temp-buffer (insert "* test - aaa baa zaa") (text-mode) (funcall mode) (call-interactively (or (local-key-binding "\M-a") (global-key-binding "\M-a"))) (cons (point) (or (local-key-binding "\M-a") (global-key-binding "\M-a"))))) '(text-mode turn-on-orgstruct++ org-mode))) -- Bang bang