From b4f3cbc87c2348a49282155ff4b36232c3e5b803 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Sun, 15 Oct 2017 15:10:32 +0200 Subject: [PATCH] emacs - Org capture --- emacs/.emacs.d/init.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 129dc2b..b159e71 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -206,8 +206,15 @@ (use-package org :ensure t :config - (setq org-directory "~/org") - (setq org-agenda-files "~/org/agenda") + (setq org-directory "~/org/") + (setq org-agenda-files (concat org-directory "agenda")) + (setq org-default-notes-file (concat org-directory "notes.org")) + (global-set-key (kbd "C-c c") 'org-capture) + (setq org-capture-templates + '( ("t" "Todo" entry (file+headline org-default-notes-file "Todos") + "* TODO %U %?\n ") + ("f" "Fix me" entry (file+headline "~/org/fixmes.org" "Fixmes") + "* TODO %?\n %a\n %i") )) (global-set-key (kbd "") 'my/counsel-org-agenda) (setq org-todo-keywords '((sequence "TODO" "WORKING" "BLOCKED" "REVIEW" "|" "ABANDONED" "DONE"))) (setq org-todo-keyword-faces