[emacs] Add shortcut to today daily page
This commit is contained in:
@ -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/")
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user