summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-04-28 23:00:36 -0400
committerKyle Meyer <kyle@kyleam.com>2014-04-29 00:01:02 -0400
commit1003f6dc3a763914af3da51b96acd8408ce4ea6e (patch)
tree5d239acef3bfe3cf84b7b73718dfbb3539b99f2b /lisp
parentff40eb32de1f0cf1cf668dd65b620d1b2deed1ac (diff)
downloademacs.d-1003f6dc3a763914af3da51b96acd8408ce4ea6e.tar.gz
Define prefix key for global Org keys
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-org.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el
index 4002a89..83ad1d7 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -38,11 +38,14 @@
(interactive)
(find-file org-default-notes-file))
-(global-set-key (kbd "C-c o l") 'org-store-link)
-(global-set-key (kbd "C-c o a") 'org-agenda)
-(global-set-key (kbd "C-c o b") 'org-iswitchb)
-(global-set-key (kbd "C-c o s") 'org-save-all-org-buffers)
-(global-set-key (kbd "C-c o m") 'km/open-main-orgfile)
+(define-prefix-command 'global-org-map)
+(global-set-key (kbd "C-c o") 'global-org-map)
+
+(define-key global-org-map "l" 'org-store-link)
+(define-key global-org-map "a" 'org-agenda)
+(define-key global-org-map "b" 'org-iswitchb)
+(define-key global-org-map "s" 'org-save-all-org-buffers)
+(define-key global-org-map "m" 'km/open-main-orgfile)
(key-chord-define-global ",a" 'org-agenda)
(setq org-structure-template-alist