lisp/org-capture.el (org-capture-place-item): When starting a new list use org-indent-line to establish the correct indentation rather than just using 0. Creating an entry in org-capture-templates of type item adds entries into a list, however, currently, if the list is empty then the first list item will always be indented to depth 0 (so hard on the left), which looks like this: * Top Level ** Second Level - item #1 - item #2 - item #3 This is fine if org-adapt-indentation is nil, however, with the default value of t lists should be indented more like this: * Top Level ** Second Level - item #1 - item #2 - item #3 The patch below changes org-capture-place-item so that, when starting a new list, the items are indented as above. Care is taken to preserve two features of the existing behaviour, first, when adding to an existing list, new items are indented to match the items already in the list. And secondly, when there is some introductory text before the list new items are inserted after the text, like this: * Top Level ** Second Level This is some introductory text: - item #1 - item #2 - item #3 TINYCHANGE |
||
---|---|---|
contrib | ||
doc | ||
etc | ||
lisp | ||
mk | ||
testing | ||
.dir-locals.el | ||
.dir-settings.el | ||
.gitignore | ||
.gitmodules | ||
COPYING | ||
Makefile | ||
README | ||
README_ELPA | ||
README_contribute | ||
README_git | ||
README_maintainer | ||
request-assign-future.txt |
README
The is a distribution of Org, a plain text notes and project planning tool for Emacs. The homepage of Org is at: http://orgmode.org The installations instructions are at: http://orgmode.org/org.html#Installation This distribution contains: README This file. COPYING The GNU General Public License. Makefile The makefile to compile and install Org. For installation instructions, see the manual or the more detailed procedure on Worg: http://orgmode.org/worg/dev/org-build-system.html mk/ Files needed for building Org. lisp/ Directory with all the Emacs Lisp files that make up Org. doc/ The documentation files. org.texi is the source of the documentation, org.html and org.pdf are formatted versions of it. contrib/ A directory with third-party additions for Org. Some really cool stuff is in there. etc/ Files needed for the ODT exporter. testing/ Testing suite for Org. request-assign-future.txt The form that contributors have to sign and get processed with the FSF before contributed changes can be integrated into the Org core. All files in this distribution except the contrib/ directory have copyright assigned to the FSF.