Chris Maiorana: God mode notes with Denote and Consult Notes

Wait 5 sec.

Consult notes is a package that hooks into your note-taking system. It works particularly well with Denote, picking up your notes directory variable automatically.My interest in having a note system comes down to whether it helps my writing. A writer needs different kinds of notes: reading notes, notes on craft, notes on etymology, and random ideas. You’ll notice I’ve built that into the config below.I’ve touched on the topic of note-taking in Emacs a few times, in posts on “making everything a note” and on the “undergrad” style of note-taking. I’ve often argued that a full dedicated notes package was unnecessary when you could simply create files and link them together.But this “consult notes” package made me want to give Denote another try and see how it feels. So far, I like it. I’m going to test drive this config for a few weeks and report back on how it’s going.Denote config(use-package denote :ensure t :bind (("C-c n n" . denote) ; new note ("C-c n f" . denote-open-or-create) ; find/create by title ("C-c n l" . denote-link) ; insert a link to another note ("C-c n b" . denote-backlinks)) ; show what links here :custom ;; Names the destination for notes in the file system (denote-directory (expand-file-name "~/notes/")) ;; Default to Org type of files (denote-file-type 'org) ;; Keywords you reach for more often (denote-known-keywords '("craft" "etymology" "draft" "idea")) (denote-prompts '(title keywords)) :config (denote-rename-buffer-mode 1)) ; show note title in the buffer name, niceConsult(use-package consult :ensure t :bind (("M-s l" . consult-line) ; search within current draft ("M-s L" . consult-line-multi) ; search across all open buffers ("M-s r" . consult-ripgrep) ; search the whole writing directory ("M-s o" . consult-outline) ; jump between org/markdown headings ("M-s b" . consult-buffer) ("M-s k" . consult-keep-lines) ; isolate lines matching a pattern ("M-s f" . consult-flush-lines)) ; strip lines matching a pattern :custom ;; Small delay before previewing (keeps a big file from feeling jumpy) (consult-preview-key '(:debounce 0.2 any)))Consult notes(use-package consult-notes :ensure t :commands (consult-notes consult-notes-search-in-all-notes) :bind (("M-s n" . consult-notes) ; search notes by title ("M-s N" . consult-notes-search-in-all-notes)) ; full-text across notes :config ;; Reads denote-directory automatically (no second path to maintain) (consult-notes-denote-mode))The post God mode notes with Denote and Consult Notes appeared first on Chris Maiorana.