diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-07-23 22:13:57 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-07-23 22:13:57 -0400 |
commit | 26fcddabfb247166aca0db15febb0e1019da5daa (patch) | |
tree | cb8226514ff1788aa9d6029cc842922664b0b488 | |
parent | 5e3270126256a9461302bb12c24aca54a0ff5f23 (diff) | |
download | emacs.d-26fcddabfb247166aca0db15febb0e1019da5daa.tar.gz |
Create Org mode prefix map
-rw-r--r-- | lisp/init-org.el | 9 |
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 |