summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-09-06 09:46:18 -0700
committerFranck Cuny <franck@fcuny.net>2024-09-06 09:46:18 -0700
commit7d259acee3d90df0bc2176509fc7a18b3d390a72 (patch)
treeaaec263646c17ba6c656ce918befcff305d63376
parentuse Emacs default theme / colors scheme (diff)
downloademacs.d-7d259acee3d90df0bc2176509fc7a18b3d390a72.tar.gz
a few more tweaks to denote
-rw-r--r--config/init-notes.el25
1 files changed, 19 insertions, 6 deletions
diff --git a/config/init-notes.el b/config/init-notes.el
index 0d393c4..9c85c38 100644
--- a/config/init-notes.el
+++ b/config/init-notes.el
@@ -19,6 +19,7 @@
 	 ("C-c n t" . denote-journal-extras-new-or-existing-entry)
 	 ("C-c n n" . denote-subdirectory))
   :custom
+  (denote-known-keywords '("journal" "project" "TIL" "people" "interviews"))
   (denote-rename-buffer-mode 1)
   (denote-journal-extras-directory (concat denote-directory "journal/" (format-time-string "%Y")))
   (denote-file-type "org")
@@ -27,6 +28,19 @@
   (denote-dired-directories-include-subdirectories t)
   (denote-journal-extras-title-format 'day-date-month-year))
 
+(use-package consult-denote
+  :after consult
+  :ensure t
+  :bind (("C-c n f" . consult-denote-find)
+	 ("C-c n g" . consult-denote-grep))
+  :config
+  (consult-denote-mode 1)
+  ;; Prefer `ripgrep' and `fd' variants when available
+  (when (executable-find "fd")
+    (setopt consult-denote-find-command #'consult-fd))
+  (when (executable-find "rg")
+    (setopt consult-denote-grep-command #'consult-ripgrep)))
+
 (use-package org
   :hook
   (org-mode . turn-on-flyspell)
@@ -36,7 +50,7 @@
   :custom
   (org-directory "~/Documents/notes")
   (org-default-notes-file (expand-file-name "tasks.org" org-directory))
-  (org-agenda-files '("tasks.org"))
+  (org-agenda-files '("tasks.org" "inbox.org"))
   
   (org-startup-folded t)
   (org-startup-indented t)
@@ -56,7 +70,7 @@
 
   ;; org-refile options
   (org-refile-allow-creating-parent-nodes (quote confirm))
-  (org-refile-targets '(("tasks.org" :tag . "target")))
+  (org-refile-targets '(("tasks.org" :tag . "project")))
   (org-refile-use-outline-path 'file)
 
   (org-hide-emphasis-markers t)
@@ -85,8 +99,7 @@
      ("E" . "src emacs-lisp")
      ("p" . "src python")
      ("e" . "example")
-     ("q" . "quote")
-     ("V" . "verbatim"))))
+     ("q" . "quote"))))
 
 (use-package org-capture
   :ensure nil
@@ -95,7 +108,7 @@
   ("C-c c" . org-capture)
   :config
   (setq org-capture-templates
-        `(("t" "Tasks" entry (file+olp "tasks.org" "Inbox")
+        `(("t" "Tasks" entry (file "inbox.org")
 	   "* TODO %?\n%U" :prepend t :empty-lines 0)
 	  ("n" "note" plain (file denote-last-path) #'denote-org-capture
            :no-save t :immediate-finish nil :kill-buffer t :jump-to-captured nil))))
@@ -106,7 +119,7 @@
   :bind
   ("C-c a" . org-agenda)
   :custom
-  (org-agenda-hide-tags-regexp (regexp-opt '("target")))
+  (org-agenda-hide-tags-regexp (regexp-opt '("project")))
   (org-agenda-start-on-weekday 1))
   
 (use-package org-auto-tangle