diff --git a/spacemacs b/spacemacs index 731a2a4..2975e29 100644 --- a/spacemacs +++ b/spacemacs @@ -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)