0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-19 18:18:43 +00:00
Savannah is a terribly unstable remote. Let's try to alleviate that.
Find a file
Bastien Guerry 6c94ea0518 Implement key replacement depending on the contexts.
* org.el (org-contextualize-agenda-or-capture): Handle key
replacement depending on the contexts.

* org-capture.el (org-capture-templates-contexts): Allow to
use the context as a way to replace one capture template by
another one.

* org-agenda.el (org-agenda-custom-commands-contexts): Allow
to use the context as a way to replace one agenda custom
command by another one.

* org.texi (Templates in contexts): Document the new structure
of the variables `org-agenda-custom-commands-contexts' and
`org-capture-templates-contexts'.

In the setup below, X is not a real capture template, it is just
an alias to templates A and B in .txt and .el files.  A and B are
deactivated by default in all files.

(setq org-capture-templates
      '(("X" "Nothing but an alias")
	("A" "AAAA" entry (file+headline [...]))
	("B" "BBBB" entry (file+headline [...]))))

(setq org-capture-templates-contexts
      '(("A" "A" ((not-in-file . ".*")))
	("B" "B" ((not-in-file . ".*")))
	("X" "A" ((in-file . "\\.txt")))
	("X" "B" ((in-file . "\\.el")))))

Thanks to Carsten for suggesting this "key-replacement" idea!
2012-08-24 12:17:58 +02:00
contrib org-e-texinfo.el: Tiny formatting and code fix 2012-08-24 11:21:24 +02:00
doc Implement key replacement depending on the contexts. 2012-08-24 12:17:58 +02:00
etc etc/ORG-NEWS: add license and some more information. 2012-04-26 19:01:29 +02:00
lisp Implement key replacement depending on the contexts. 2012-08-24 12:17:58 +02:00
testing org-export: Run export hook with current back-end as argument 2012-08-24 10:10:44 +02:00
utils Add eldo.el to utils/ 2012-08-23 12:55:45 +02:00
.dir-locals.el Directory local variables: Set sentence-end-double-space to t 2012-08-10 09:24:19 +02:00
.dir-settings.el Directory local variables: Set sentence-end-double-space to t 2012-08-10 09:24:19 +02:00
.gitignore Rename UTILITIES/ to utils/ 2012-08-23 12:47:10 +02:00
.gitmodules Changes to suit latest ert structure. ERT is now a part of EMACS and the source of the ERT git submodule is deprecated, as are some files within. Changes testing/README and .gitmodules to suit. 2011-03-01 09:59:01 -07:00
default.mk Rename UTILITIES/ to utils/ 2012-08-23 12:47:10 +02:00
Makefile Makefile: add link to Worg to `make help´ 2012-08-21 21:34:18 +02:00
README Mention GNU Make as a dependancy. 2012-05-26 00:24:52 +02:00
README_DIST Bump to version 7.8.11. 2012-05-25 09:36:15 +02:00
README_GIT Update README_GIT 2011-07-08 15:22:21 +00:00
README_maintainer Rename UTILITIES/ to utils/ 2012-08-23 12:47:10 +02:00
request-assign-future.txt Release 5.13e 2008-01-31 11:37:24 +01:00
targets.mk Makefile: remove circular dependency created by robo-changing UTILITIES->utils 2012-08-23 17:59:23 +02:00

This is the Emacs Org project, an Emacs library for organizing your life.

The homepage of Org is at http://orgmode.org

This distribution contains:

README
    This file.

README_DIST
    The README file for the distribution (zip and tar files)

README_GIT
    Information about the git repository and how to contribute
    to Org-mode development. 

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.

ChangeLog
    The standard ChangeLog file.

Makefile
    The makefile to compile and install Org with GNU Make, and also
    for maintenance tasks.

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.

EXPERIMENTAL
    Experimental code, not necessarily FSF copyright.