summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-07-23 22:13:57 -0400
committerKyle Meyer <kyle@kyleam.com>2014-07-23 22:13:57 -0400
commit26fcddabfb247166aca0db15febb0e1019da5daa (patch)
treecb8226514ff1788aa9d6029cc842922664b0b488 /lisp
parent5e3270126256a9461302bb12c24aca54a0ff5f23 (diff)
downloademacs.d-26fcddabfb247166aca0db15febb0e1019da5daa.tar.gz
Create Org mode prefix map
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-org.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el
index d412a1f..e2d77a3 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -78,12 +78,15 @@
("i" "#+index: ?" "#+index: ?")
("I" "#+include: %file ?" "<include file=%file markup=\"?\">")))
+(define-prefix-command 'km/org-prefix-map)
+(define-key km/org-prefix-map "w" 'km/org-refile-to-other-org-buffer)
+(define-key km/org-prefix-map "s" 'km/org-sort-parent)
+(define-key km/org-prefix-map "l" 'km/org-remove-title-leader)
+
(after 'org
(define-key org-mode-map (kbd "C-c C-x B")
'km/org-tree-to-indirect-buffer-current-window)
- (define-key org-mode-map (kbd "C-c m w") 'km/org-refile-to-other-org-buffer)
- (define-key org-mode-map (kbd "C-c m s") 'km/org-sort-parent)
- (define-key org-mode-map (kbd "C-c m l") 'km/org-remove-title-leader)
+ (define-key org-mode-map (kbd "C-c m") 'km/org-prefix-map)
;; Override global `imenu' binding.
(define-key org-mode-map (kbd "C-c j") 'org-goto)
;; Don't let `org-cycle-agenda-files' binding override custom