Add more custom jump-to-notes shortcuts

This commit is contained in:
2019-02-27 11:39:34 -08:00
parent 7b1c05c594
commit 9033403e94

View File

@@ -497,7 +497,18 @@ you should place your code here."
(sp-pair "\"" nil :actions :rem)))
(spacemacs/declare-prefix "o" "user prefix")
(spacemacs/set-leader-keys "op" 'go-to-projects-file))
(spacemacs/set-leader-keys "op" 'go-to-projects-file)
(set-note-key "o g" "groceries" "Grocery.org")
(set-note-key "o G" "gloomhaven" "Games/Gloomhaven.org")
(set-note-key "o P" "play-list" "Games/PlayList.org"))
(defun set-note-key (key label note-name)
(spacemacs/set-leader-keys
key
(lambda ()
(interactive)
(find-file (concat "~/Dropbox/Notes/" note-name))))
(which-key-add-key-based-replacements (concat "SPC " key) label))
(defun go-to-projects-file ()
(interactive)