Skip to content

Commit

Permalink
tweak(consult-notes): minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 28, 2023
1 parent b2e48f0 commit a05792a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/me-notes.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@

(use-package consult-notes
:straight t
:commands consult-notes consult-notes-search-in-all-notes
:init
(fmakunbound 'consult-notes-org-roam-mode)
(fmakunbound 'consult-notes-org-roam-find-node-relation)
(defun +consult-notes--unbound-org-roam ()
(fmakunbound 'consult-notes-org-roam-mode)
(fmakunbound 'consult-notes-org-roam-find-node-relation))
(+consult-notes--unbound-org-roam)
(+map! :infix "n"
"f" #'consult-notes
"s" #'consult-notes-search-in-all-notes)
:custom
(consult-notes-file-dir-sources `(("Notes" "n" ,denote-directory))) ; Set notes dir(s), see below
(consult-notes-denote-files-function #'denote-directory-text-only-files) ; Search only for text files in denote dir
:config
(fmakunbound 'consult-notes-org-roam-mode)
(fmakunbound 'consult-notes-org-roam-find-node-relation)
(+consult-notes--unbound-org-roam)
(consult-notes-denote-mode 1)
(consult-notes-org-headings-mode 1))

Expand Down

0 comments on commit a05792a

Please sign in to comment.