mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-25 07:27:57 +00:00
Added an entry for the template pre-selection feature.
This commit is contained in:
parent
187ab7d599
commit
c4b0866e29
@ -63,6 +63,27 @@
|
||||
entries. These can be used in dependency implementations,
|
||||
or to tie clock tables and column view tables to entries.
|
||||
|
||||
*** New template option: pre-selection contexts
|
||||
|
||||
- Templates now allow six elements. The last element defines
|
||||
the contexts in which the template should be offered. It
|
||||
can be a list of major modes, a function, `t' or `nil'. If
|
||||
it is a list of major-mode, the template will be available
|
||||
only when `org-remember' is called from a buffer in one of
|
||||
these modes. If it is a function, the template will be
|
||||
offered only if the function returns `t' when called in the
|
||||
current buffer. A value of `t' for this element means
|
||||
select this template in any context. `nil' means use this
|
||||
template by default, when other checks failed.
|
||||
|
||||
(setq org-remember-templates
|
||||
'(("Org" ?o "* %a\n\n%i%?" "~/org/bzg.org" "Org" my-defun)))
|
||||
|
||||
M-x org-remember RET will present this template only if
|
||||
calling `my-defun' in the current buffer returns `nil'.
|
||||
|
||||
The (info "(org)Remember templates") for details.
|
||||
|
||||
*** Misc
|
||||
|
||||
- Phil Jackson's org-irc.el is now part of the Org-mode core,
|
||||
@ -90,7 +111,6 @@
|
||||
|
||||
This was a proposal by Adam Spiers.
|
||||
|
||||
|
||||
- `C-c -' has now more functions:
|
||||
+ In a table, add a hline as before
|
||||
+ In an item list, cycle bullet type as before
|
||||
|
Loading…
Reference in New Issue
Block a user