diff options
author | Adrian Kummerlaender | 2020-06-11 14:54:33 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2020-06-11 14:54:33 +0200 |
commit | 4dca44efcab0bfed1854fb8b55b7d7e2fc7fd214 (patch) | |
tree | f0dd247de13adf358bd2269ecdc55193ade5e509 /gui/conf | |
parent | 6c0532300e5df06cba7fdc37ea9fda5b9e54be2c (diff) | |
download | nixos_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
Diffstat (limited to 'gui/conf')
-rw-r--r-- | gui/conf/init.el | 19 |
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/") |