diff --git a/lisp/init-kbd-func.el b/lisp/init-kbd-func.el index 3f2edce..5a7cb7a 100644 --- a/lisp/init-kbd-func.el +++ b/lisp/init-kbd-func.el @@ -112,7 +112,13 @@ otherwise toggle global-jinx-mode." (find-file "~/org/my-org-note/20260508T220745==metanote--all-my-metanotes__org.org")) -(defun org-table-align-all () +(defun my-denote-find-file () + "Find file use denote-file-prompt." + (interactive) + (let ((denote-excluded-files-regexp "=journal")) + (find-file (denote-file-prompt)))) + +(defun my-org-table-align-all () "Ajust all table in current buffer." (interactive) (save-excursion diff --git a/lisp/init-kbd.el b/lisp/init-kbd.el index 418220a..aac4ebb 100644 --- a/lisp/init-kbd.el +++ b/lisp/init-kbd.el @@ -91,9 +91,9 @@ ;; o for org-mode (general-def :prefix "C-c o" - "f" 'consult-notes + "f" 'my-denote-find-file + "g" 'consult-denote-grep "s" 'consult-org-agenda - "g" 'consult-notes-search-in-all-notes "C" 'calendar "c" 'org-capture "d" 'denote diff --git a/lisp/init-org.el b/lisp/init-org.el index 82bc0d3..5ce1f1e 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -102,6 +102,14 @@ ;; denote-org (use-package denote-org) +;; denote-lint +(use-package denote-lint + :straight '(denote-lint :type git + :host github + :repo "Andsy10/denote-lint") + :config + (setq org-link-elisp-confirm-function nil)) + ;; denote-journal (use-package denote-journal :hook @@ -115,16 +123,12 @@ ;; denote-explore (use-package denote-explore) -;; consult-notes -(use-package consult-notes - :straight - '(consult-notes :fork (:host github :repo "Andsy10/consult-notes")) +;; consult-denote +(use-package consult-denote :hook - (after-init . consult-notes-denote-mode) - :config - (setq consult-notes-denote-display-keywords-indicator "_") - (setq consult-notes-denote-display-id-format 'date) - (setq consult-notes-denote-display-signature t)) + (after-init . consult-denote-mode) + :init + (setq consult-denote-grep-command 'consult-ripgrep)) ;; org-download (use-package org-download