Add handy shortcut to today.org #emacs
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user