diff options
| -rw-r--r-- | dotfiles-darwin/emacs/init.el | 4 | ||||
| -rw-r--r-- | emacs/init.el | 15 |
2 files changed, 17 insertions, 2 deletions
diff --git a/dotfiles-darwin/emacs/init.el b/dotfiles-darwin/emacs/init.el index dd89f18..d0be267 100644 --- a/dotfiles-darwin/emacs/init.el +++ b/dotfiles-darwin/emacs/init.el @@ -10,6 +10,10 @@ ;; Org +(use-package org + :defer t + :custom (org-agenda-files '("~/Documents/ZK/TODO.org"))) + (use-package org-roam :defer t :custom (org-roam-directory "~/Documents/ZK/")) diff --git a/emacs/init.el b/emacs/init.el index a1d4730..16a251d 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -297,15 +297,26 @@ ;; Org (use-package org + :config + (defun my/org-agenda-todo () + (interactive) + (consult-org-agenda "/TODO")) + :bind ("C-c n t" . my/org-agenda-todo) :custom - ((org-hide-emphasis-markers t) + ((org-archive-file-header-format nil) + (org-archive-location ".%s_archive::") + (org-archive-reversed-order t) + (org-hide-emphasis-markers t) + (org-log-done 'time) (org-startup-folded 'showall)) :defer t) (use-package org-roam :config (org-roam-db-autosync-enable) :bind (("C-c n c" . org-roam-capture) - ("C-c n f" . org-roam-node-find)) + ("C-c n f" . org-roam-node-find) + :map org-mode-map + ("C-c n i" . org-roam-node-insert)) :custom ((org-id-locations-file (my/data-file-name "org-id-locations")) (org-roam-db-location (my/data-file-name "org-roam.db"))) |
