Bläddra i källkod

Add handy shortcut to today.org #emacs

Colin Powell 6 år sedan
förälder
incheckning
8bb0d2568d
1 ändrade filer med 7 tillägg och 1 borttagningar
  1. 7 1
      emacs/.config/doom/+org.el

+ 7 - 1
emacs/.config/doom/+org.el

@@ -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)