Browse Source

[emacs] Add shortcut to today daily page

Colin Powell 2 years ago
parent
commit
305518e9cd
2 changed files with 4 additions and 4 deletions
  1. 2 2
      emacs/.config/doom/config.el
  2. 2 2
      emacs/.config/doom/config.org

+ 2 - 2
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/")

+ 2 - 2
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