diff options
author | jao <jao@gnu.org> | 2021-03-07 04:05:53 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-03-07 04:06:30 +0000 |
commit | f115e70b115e8f0c6380c5917a9649e5b2545444 (patch) | |
tree | 3d3147970ca9e467f99646d1b7bbbe2382d305ac | |
parent | 9b382b980d3cf604158754e7ce28090893b0f300 (diff) | |
download | elibs-f115e70b115e8f0c6380c5917a9649e5b2545444.tar.gz elibs-f115e70b115e8f0c6380c5917a9649e5b2545444.tar.bz2 |
jao-org-notes: fix for capture template and keybindings
-rw-r--r-- | exwm.org | 4 | ||||
-rw-r--r-- | init.org | 4 | ||||
-rw-r--r-- | lib/org/jao-org-notes.el | 2 | ||||
-rw-r--r-- | org.org | 3 |
4 files changed, 7 insertions, 6 deletions
@@ -418,8 +418,8 @@ (pretty-hydra-define jao-hydra-exwm (global-map "s-w" :color blue :quit-key "q") ("Notes" - (("n" org-roam-capture "capture note") - ("N" org-roam-find-file-immediate "go to note")) + (("n" jao-org-notes-open-or-create "capture note") + ("N" jao-org-notes-open "go to note")) "Packages" (("a" jao-vterm-aptitude "aptitude") ("l" jao-exwm-paradox "package list") @@ -4219,8 +4219,8 @@ (pretty-hydra-define jao-hydra-emacs-utils (:color blue :quit-key "q") ("Notes" - (("n" org-roam-capture "capture note") - ("N" org-roam-find-file-immediate "go to note")) + (("n" jao-org-notes-open-or-create "capture note") + ("N" jao-org-notes-open "go to note")) "Packages" (("a" jao-vterm-aptitude "aptitude") ("l" (progn (jao-afio--goto-scratch) (list-packages)) "package list") diff --git a/lib/org/jao-org-notes.el b/lib/org/jao-org-notes.el index 9cc343f..621ac12 100644 --- a/lib/org/jao-org-notes.el +++ b/lib/org/jao-org-notes.el @@ -103,7 +103,7 @@ (insert "\n")) (defun jao-org-notes--template (k) - `(,k "Note" plain (file jao-org-notes-open) "\n- %a " + `(,k "Note" plain (file jao-org-notes-open-or-create) "\n- %a " :immediate-finish t :jump-to-captured t)) ;;;###autoload @@ -211,8 +211,8 @@ * Notes #+begin_src emacs-lisp (use-package jao-org-notes + :commands (jao-org-notes-setup) :config - (jao-org-notes-setup "n") (major-mode-hydra-define+ org-mode () ("Notes" (("i" jao-org-notes-insert-link "insert link") @@ -221,6 +221,7 @@ ("v" jao-org-notes-backlinks "show backlinks")))) :bind (("C-c n" . jao-org-notes-open-or-create) ("C-c N" . jao-org-notes-open))) + (jao-org-notes-setup "n") #+end_src * Links #+begin_src emacs-lisp |