diff options
-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")))) + |