Add handy shortcut to today.org #emacs

This commit is contained in:
Colin Powell
2019-03-26 16:34:49 -04:00
parent 4a4986e2e3
commit 8bb0d2568d

View File

@ -4,6 +4,7 @@
;;; Commentary:
;;; Code:
(setq +todo-file "~/org/inbox.org")
(setq +today-file "~/org/today.org")
(after! org
(setq org-directory (expand-file-name "~/org/")
@ -102,10 +103,15 @@
(interactive)
"Opens the todo file"
(find-file +todo-file))
(defun +open-today-file ()
(interactive)
"Opens the today file"
(find-file +today-file))
(map!
:leader
:desc "Open inbox" "I" #'+open-todo-file)
:desc "Open inbox" "I" #'+open-todo-file
:desc "Open today" "T" #'+open-today-file)
(defun +show-agenda ()
(interactive)