From e0da2a9a4d6668f8070f1a983b65b0b38718e248 Mon Sep 17 00:00:00 2001 From: BardofSprites <89086143+BardofSprites@users.noreply.github.com> Date: Sun, 28 Jul 2024 14:59:05 -0400 Subject: update denote for new subdir workflow --- bard-emacs-modules/bard-emacs-writing.el | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'bard-emacs-modules') diff --git a/bard-emacs-modules/bard-emacs-writing.el b/bard-emacs-modules/bard-emacs-writing.el index e12f187..7e5875d 100644 --- a/bard-emacs-modules/bard-emacs-writing.el +++ b/bard-emacs-modules/bard-emacs-writing.el @@ -86,7 +86,14 @@ "history" "biology" )) + (setq denote-prompts '(title keywords subdirectory)) (denote-rename-buffer-mode 1) + (defun bard/find-notes-file () + (interactive) + (consult-find "~/Notes/denote")) + (defun bard/search-notes-directory () + (interactive) + (consult-grep "~/Notes/denote")) :hook (dired-mode . denote-dired-mode) @@ -94,22 +101,20 @@ (denote-journal-extras-hook . (lambda () (tmr "10" "Journalling") (bard/scroll-center-cursor-mode t))) - - :bind - (("C-c n n" . denote-open-or-create) - ("C-c n N" . denote) + :bind + (("C-c n n" . denote) ("C-c R" . denote-region) - ("C-c n d" . denote-date) ("C-c n o" . denote-sort-dired) ("C-c n j" . denote-journal-extras-new-entry) - ("C-c n r" . denote-rename-file) ("C-c n r" . denote-rename-file-using-front-matter) ("C-c n k" . denote-rename-file-keywords) ("C-c n i" . denote-link) ("C-c n I" . denote-add-links) ("C-c n b" . denote-backlinks) - ("C-c n f" . denote-find-link) - ("C-c n F" . denote-find-backlink))) + ("C-c n f" . bard/find-notes-file) + ("C-c n s" . bard/search-notes-directory) + ("C-c n l" . denote-find-link) + ("C-c n L" . denote-find-backlink))) ;;; Focus mode for writing @@ -140,7 +145,6 @@ (setq olivetti-recall-visual-line-mode-entry-state t) :hook ((olivetti-mode-on . (lambda () (olivetti-set-width 100))) - ;; (olivetti-mode . (lambda () (bard/scroll-center-cursor-mode t))) )) ;; narrowing and focus mode @@ -191,4 +195,8 @@ :config (pdf-tools-install)) +(use-package nov + :ensure t + ) + (provide 'bard-emacs-writing) -- cgit v1.2.3