summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-03-07 04:05:53 +0000
committerjao <jao@gnu.org>2021-03-07 04:06:30 +0000
commitf115e70b115e8f0c6380c5917a9649e5b2545444 (patch)
tree3d3147970ca9e467f99646d1b7bbbe2382d305ac
parent9b382b980d3cf604158754e7ce28090893b0f300 (diff)
downloadelibs-f115e70b115e8f0c6380c5917a9649e5b2545444.tar.gz
elibs-f115e70b115e8f0c6380c5917a9649e5b2545444.tar.bz2
jao-org-notes: fix for capture template and keybindings
-rw-r--r--exwm.org4
-rw-r--r--init.org4
-rw-r--r--lib/org/jao-org-notes.el2
-rw-r--r--org.org3
4 files changed, 7 insertions, 6 deletions
diff --git a/exwm.org b/exwm.org
index c0c5670..0ffe0cb 100644
--- a/exwm.org
+++ b/exwm.org
@@ -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")
diff --git a/init.org b/init.org
index e1b3347..1338a34 100644
--- a/init.org
+++ b/init.org
@@ -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
diff --git a/org.org b/org.org
index 0e300ec..993c6b3 100644
--- a/org.org
+++ b/org.org
@@ -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