aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-06-11 14:54:33 +0200
committerAdrian Kummerlaender2020-06-11 14:54:33 +0200
commit4dca44efcab0bfed1854fb8b55b7d7e2fc7fd214 (patch)
treef0dd247de13adf358bd2269ecdc55193ade5e509
parent6c0532300e5df06cba7fdc37ea9fda5b9e54be2c (diff)
downloadnixos_home-4dca44efcab0bfed1854fb8b55b7d7e2fc7fd214.tar
nixos_home-4dca44efcab0bfed1854fb8b55b7d7e2fc7fd214.tar.gz
nixos_home-4dca44efcab0bfed1854fb8b55b7d7e2fc7fd214.tar.bz2
nixos_home-4dca44efcab0bfed1854fb8b55b7d7e2fc7fd214.tar.lz
nixos_home-4dca44efcab0bfed1854fb8b55b7d7e2fc7fd214.tar.xz
nixos_home-4dca44efcab0bfed1854fb8b55b7d7e2fc7fd214.tar.zst
nixos_home-4dca44efcab0bfed1854fb8b55b7d7e2fc7fd214.zip
Add basic Org capture templates
-rw-r--r--gui/conf/init.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
index d920fad..4dbaba5 100644
--- a/gui/conf/init.el
+++ b/gui/conf/init.el
@@ -94,6 +94,25 @@
'((sequence "TODO(t)" "|" "DONE(d)")
(sequence "EXAM(e)" "|" "DONE(d)")))
+(setq org-capture-templates
+ '(("t"
+ "Todo item"
+ entry
+ (file org-default-notes-file)
+ "* TODO %?\n%a")
+ ("j"
+ "Journal entry"
+ entry
+ (file org-default-notes-file)
+ "* %U %^{Title}\n%?")
+ ("s"
+ "Quote selection"
+ entry
+ (file org-default-notes-file)
+ "* %^{Description}\n%U\n#+BEGIN_QUOTE\n%i#+END_QUOTE")))
+
+(global-set-key (kbd "C-c c") 'org-capture)
+
(add-hook 'org-mode-hook 'visual-line-mode)
(setq org-latex-preview-ltxpng-directory "~/.emacs.d/ltxpng/")