Add more custom jump-to-notes shortcuts
This commit is contained in:
13
spacemacs
13
spacemacs
@@ -497,7 +497,18 @@ you should place your code here."
|
|||||||
(sp-pair "\"" nil :actions :rem)))
|
(sp-pair "\"" nil :actions :rem)))
|
||||||
|
|
||||||
(spacemacs/declare-prefix "o" "user prefix")
|
(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 ()
|
(defun go-to-projects-file ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|||||||
Reference in New Issue
Block a user