From b8545658c0019f2ca68bc99f9767e67dc052718a Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 16 Feb 2020 23:10:30 -0500 Subject: [PATCH] Switch up some org keybindings --- emacs/init.org | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index 1555805..d83b9a1 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -1571,6 +1571,8 @@ A function to add ids to every heading in an Org file: (general-def 'normal org-mode-map "" #'org-return) (general-def 'normal org-mode-map "TAB" #'org-cycle) (general-def 'normal org-mode-map "SPC" leader-map) + (general-def '(normal motion visual) org-mode-map "gn" #'org-next-link) + (general-def '(normal motion visual) org-mode-map "gp" #'org-previous-link) (general-def org-mode-map "C-c e" #'org-preview-latex-fragment) (general-def "C-c l" #'org-store-link) #+END_SRC @@ -1965,7 +1967,8 @@ Quickly find stuff in Org files: "D" #'helm-org-rifle-occur-directories "F" #'helm-org-rifle-occur-files "O" #'helm-org-rifle-occur-org-directory) - (leader-def-key "or" helm-org-rifle-commands-map)) + (leader-def-key "or" helm-org-rifle-commands-map) + (jdormit/define-prefix "or" "org-rifle")) #+END_SRC * Org Noter @@ -2009,6 +2012,8 @@ Quickly find stuff in Org files: (leader-def-key "fo" #'org-roam-find-file) (leader-def-key "of" #'org-roam-find-file) (defvar org-roam-map (make-sparse-keymap)) + (leader-def-key "on" org-roam-map) + (jdormit/define-prefix "on" "org-roam") (which-key-add-key-based-replacements "C-c n" "org-roam") (which-key-add-major-mode-key-based-replacements 'org-mode "gn" "org-roam") @@ -2027,7 +2032,7 @@ Quickly find stuff in Org files: (org-roam-map "f" #'org-roam-find-file) (org-roam-map "i" #'org-roam-insert) (org-roam-map "g" #'org-roam-show-graph) - ((normal motion visual) org-mode-map "gn" org-roam-map) + ((normal motion visual) org-mode-map "gr" org-roam-map) ("C-c n" org-roam-map)) #+END_SRC