summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorLLoyderino <adrijan.bjedov@gmail.com>2025-07-10 14:46:00 +0200
committerLLoyderino <adrijan.bjedov@gmail.com>2025-07-10 14:46:00 +0200
commite8ef237d361cd02de81fd85317ed57c1968e986a (patch)
tree1cc86b07d2e57986c892b1c5dbcb437530a8bfd7 /init.el
parent92eb776d9587dd7c40dcac5e8b2703c1745c285e (diff)
Basic configurations to Org and Agenda
- Minimalistic HTML exports - Agenda global shortcuts - Agenda directory config - Org capture configuration
Diffstat (limited to 'init.el')
-rw-r--r--init.el23
1 files changed, 23 insertions, 0 deletions
diff --git a/init.el b/init.el
index c0098f8..db67661 100644
--- a/init.el
+++ b/init.el
@@ -40,6 +40,29 @@
(setq scroll-conservatively 5 ; Smooth scrolling~
scroll-margin 5) ; https://themkat.net/2025/03/25/simple_smoother_emacs_scrolling.html
+;; Org & Agenda
+(global-set-key (kbd "C-c l") #'org-store-link)
+(global-set-key (kbd "C-c a") #'org-agenda)
+(global-set-key (kbd "C-c c") #'org-capture)
+
+(setq org-directory "~/Documents/Org"
+ org-agenda-directory (file-name-concat org-directory "Agenda")
+ org-agenda-files (list org-agenda-directory))
+
+(setq org-html-head ""
+ org-html-head-extra ""
+ org-html-head-include-default-style nil
+ org-html-head-include-scripts nil
+ org-html-preamble nil
+ org-html-postamble nil
+ org-html-use-infojs nil)
+
+(setq org-capture-templates
+ `(("t" "Todo" entry (file ,(file-name-concat org-agenda-directory "Todo.org"))
+ "* TODO %?\n %i\n")
+ ("i" "Idea" entry (file ,(file-name-concat org-agenda-directory "Idea.org"))
+ "* TODO %^{Title} :idea:\n %?\n %i\n")))
+
;; Undo
(use-package vundo
:custom