diff options
author | Christopher Schmidt <christopher@ch.ristopher.com> | 2013-05-06 18:21:56 +0200 |
---|---|---|
committer | Christopher Schmidt <christopher@ch.ristopher.com> | 2013-05-06 18:25:00 +0200 |
commit | 741bc5c6455d47249affc8ba29e47c00a6150145 (patch) | |
tree | 7092ac280e2f4ce8f678a0f55a758aa18bae7981 | |
parent | 9bc55c7d0090e0a7667ed47cfa6d4ac2b1fa00e4 (diff) | |
download | org-mode-741bc5c6455d47249affc8ba29e47c00a6150145.tar.gz |
org.el: Execute org-insert-heading and org-insert-heading-respect-content in
orgstruct++-mode when the context around point is an item-body.
* org.el (orgstruct-make-binding): Execute org-insert-heading
and org-insert-heading-respect-content when the context around
point is an item-body.
-rw-r--r-- | lisp/org.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index b839a8f..8ec6781 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9008,7 +9008,10 @@ if `orgstruct-heading-prefix-regexp' is non-nil." (not (let* ,bindings (org-context-p 'headline 'item - ,(when (memq fun '(org-insert-heading)) + ,(when (memq fun + '(org-insert-heading + org-insert-heading-respect-content + org-meta-return)) '(when orgstruct-is-++ 'item-body)))))))) (if fallback |