From 305518e9cddf6a18c0ef381eddfea0a9a1cabd7b Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 9 Feb 2023 10:23:40 -0500 Subject: [PATCH] [emacs] Add shortcut to today daily page --- emacs/.config/doom/config.el | 4 ++-- emacs/.config/doom/config.org | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/emacs/.config/doom/config.el b/emacs/.config/doom/config.el index 33d8907..c0b943e 100644 --- a/emacs/.config/doom/config.el +++ b/emacs/.config/doom/config.el @@ -140,8 +140,7 @@ (load! "+agenda-fix") (defun vulpea-agenda-files-update (&rest _) - "Update the value of `org-agenda-files'." - (setq org-agenda-files (append (vulpea-project-files) '("~/src/code.unbl.ink/vrobbler/todos.org")))) + (setq org-agenda-files vulpea-project-files)) (advice-add 'org-agenda :before #'vulpea-agenda-files-update) (advice-add 'org-todo-list :before #'vulpea-agenda-files-update) @@ -178,6 +177,7 @@ (map! :leader :desc "Open inbox" "I" #'+open-inbox-file + :desc "Open today" "d" #'org-roam-dailies-goto-today :desc "Save all org buffers" "A" #'org-save-all-org-buffers) (setq org-roam-directory "~/var/org/") diff --git a/emacs/.config/doom/config.org b/emacs/.config/doom/config.org index db9b23f..b47ba77 100644 --- a/emacs/.config/doom/config.org +++ b/emacs/.config/doom/config.org @@ -210,8 +210,7 @@ This uses the super helpful "vulpea" module. #+BEGIN_SRC emacs-lisp (load! "+agenda-fix") (defun vulpea-agenda-files-update (&rest _) - "Update the value of `org-agenda-files'." - (setq org-agenda-files (append (vulpea-project-files) '("~/src/code.unbl.ink/vrobbler/todos.org")))) + (setq org-agenda-files vulpea-project-files)) (advice-add 'org-agenda :before #'vulpea-agenda-files-update) (advice-add 'org-todo-list :before #'vulpea-agenda-files-update) @@ -254,6 +253,7 @@ Inbox file and a quick way to save all open org mode files. (map! :leader :desc "Open inbox" "I" #'+open-inbox-file + :desc "Open today" "d" #'org-roam-dailies-goto-today :desc "Save all org buffers" "A" #'org-save-all-org-buffers) #+END_SRC