emacs: Add support for the org-mode.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 9 May 2008 21:19:48 +0000 (22:19 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 9 May 2008 21:19:48 +0000 (22:19 +0100)
org-mode is very impressive; but it'll need some key rebinding before
I can cope with it; in particular, its rebinding of S-<cursor> and
(particularly) M-<cursor> is just not on!

emacs

diff --git a/emacs b/emacs
index 871f969..7185504 100644 (file)
--- a/emacs
+++ b/emacs
 (global-set-key [?\C-x ?w ?j] 'windmove-down)
 (global-set-key [?\C-x ?w right] 'windmove-right)
 (global-set-key [?\C-x ?w ?l] 'windmove-right)
+(global-set-key [?\C-x ?g ?l] 'org-store-link)
+(global-set-key [?\C-x ?g ?a] 'org-agenda)
 (global-set-key [?\M-#] 'calc-dispatch)
 (global-set-key [?\C-x ?/] 'auto-fill-mode)
 (global-set-key [?\C-x ?w ?d] 'mdw-divvy-window)
                ("\\.m$" . objc-mode)
                ("\\.mxd$" . c-mode)
                ("\\.cs" . csharp-mode)
+               ("\\.org$" . org-mode)
                ;; ("/[ch]/" . c-mode)
                (,(concat "/\\("
                          "\\.stgit\\.msg" "\\|"