From 63722cd011bbd4eae2221ffee9570edfcd637503 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 17 Feb 2016 06:02:16 -0800 Subject: [emacs] More settings for org-mode. Add configuration for templates; set the list of files for the agenda; add a binding to capture notes; etc. --- emacs.d/core/core-org.el | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'emacs.d/core') diff --git a/emacs.d/core/core-org.el b/emacs.d/core/core-org.el index 7192460..e17ba2f 100644 --- a/emacs.d/core/core-org.el +++ b/emacs.d/core/core-org.el @@ -1,15 +1,32 @@ (use-package org :mode ("\\.org$" . org-mode) :ensure t + :bind ("C-c c" . org-capture) :config (progn - (setq-default fill-column 120) - (setq org-src-fontify-natively t) - (add-hook 'org-mode-hook 'auto-fill-mode) + (add-hook 'org-mode-hook #'toggle-word-wrap) (org-babel-do-load-languages 'org-babel-load-languages '((scheme . t) (sh . t)))) :init - (progn - (setq org-startup-indented t))) + (setq org-startup-indented t + org-src-fontify-natively t + org-src-tab-acts-natively t + org-confirm-babel-evaluate nil + org-directory "~/personal" + org-default-notes-file (concat org-directory "/refile.org") + org-todo-keywords '((sequence "TODO(t)" "DOING(i!)" "WAITING(w!)" "|" "DONE(d!)" "CANCEL(c!)")) + org-link-abbrev-alist '(("src" . "~/src/%s") + ("jira" . "https://jira.twitter.biz/browse/%s") + ("rb" . "https://reviewboard.twitter.biz/r/%s") + ("go" . "http://go/%s") + ("gdoc" . "https://docs.google.com/document/d/%s") + ("gsheet" . "https://docs.google.com/spreadsheets/d/%s")) + org-capture-templates '(("t" "Todo" entry (file+headline (concat org-directory "/refile.org") "Tasks") + "* TODO %?\n %i") + ("m" "Meeting" entry (file+headline (concat org-directory "/twitter.org") "Meetings") + "* %T %?\n %i")) + org-agenda-files (list (concat org-directory "/twitter.org") + (concat org-directory "/personal.org")))) + -- cgit 1.4.1