summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2025-07-06 12:55:16 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2025-07-06 12:55:16 +0100
commit51ef11637a98a9ae575b1f4bc88181b9d731fa55 (patch)
tree20574f75cff9b24b39ec80322b77ae562597ab77
parent55f97517644213c38b4daabd4cbf0d181d055f04 (diff)
emacs: Try out logging tasks with Org
-rw-r--r--dotfiles-darwin/emacs/init.el4
-rw-r--r--emacs/init.el15
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")))