diff options
author | Franck Cuny <franckcuny@gmail.com> | 2016-02-17 06:02:16 -0800 |
---|---|---|
committer | Franck Cuny <franckcuny@gmail.com> | 2016-02-17 06:02:16 -0800 |
commit | 63722cd011bbd4eae2221ffee9570edfcd637503 (patch) | |
tree | 0bd47b0b6c0ad1abcdbf9cb17e306fd8f0440570 | |
parent | Fix a typo in the README. (diff) | |
download | emacs.d-63722cd011bbd4eae2221ffee9570edfcd637503.tar.gz |
[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.
-rw-r--r-- | emacs.d/core/core-org.el | 27 |
1 files changed, 22 insertions, 5 deletions
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")))) + |