From 1003f6dc3a763914af3da51b96acd8408ce4ea6e Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 28 Apr 2014 23:00:36 -0400 Subject: Define prefix key for global Org keys --- lisp/init-org.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'lisp/init-org.el') 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 -- cgit v1.2.3