From e8ef237d361cd02de81fd85317ed57c1968e986a Mon Sep 17 00:00:00 2001 From: LLoyderino Date: Thu, 10 Jul 2025 14:46:00 +0200 Subject: Basic configurations to Org and Agenda - Minimalistic HTML exports - Agenda global shortcuts - Agenda directory config - Org capture configuration --- init.el | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- cgit v1.3.1