summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2013-05-15 10:54:32 +0100
committerAlan Pearce2013-05-15 10:54:32 +0100
commit5b2b7b4b2edf7b882947017afca376c0b9e7a2f5 (patch)
treee87f77c94de2b4e5a9fa817f25fa1cef49284c43
parentf447bb9c95d2b40047f57fea19c70d061c19eeac (diff)
downloaddotfiles-5b2b7b4b2edf7b882947017afca376c0b9e7a2f5.tar.lz
dotfiles-5b2b7b4b2edf7b882947017afca376c0b9e7a2f5.tar.zst
dotfiles-5b2b7b4b2edf7b882947017afca376c0b9e7a2f5.zip
Emacs: fix org-mode package reference
-rw-r--r--emacs/init.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/emacs/init.el b/emacs/init.el
index c90f20a..93a8d55 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -549,15 +549,15 @@
             (setq calendar-week-start-day 1)
             (calendar-set-date-style 'iso)))
 
-(use-package org-mode
+(use-package org
   :bind (("C-c C-a" . org-agenda-list)
          ("C-c a" . org-agenda)
          ("C-c l" . org-store-list)
          ("C-c r" . org-remember)
          ("C-c b" . org-iswitchb))
   :config (progn
-            (setq org-directory "~/org")
-            (setq org-agenda-files `(,org-directory)
+            (setq org-directory "~/org"
+                  org-agenda-files `(,org-directory)
 
                   org-default-notes-file (concat org-directory "/notes")
 
@@ -588,8 +588,12 @@
 
                   org-blank-before-new-entry '((heading . t)
                                                (plain-list-item . auto))
-                  org-fontify-done-headline t)
+                  org-fontify-done-headline t
 
+                  org-replace-disputed-keys t
+                  org-todo-keywords '((sequence "TODO" "STARTED" "|" "DONE")
+                                      (sequence "TOLEARN" "LEARNING" "LEARNED" "|" "MASTERED")
+                                      (sequence "|" "CANCELLED")))
             (defadvice org-clock-in (after wicked activate)
               "Mark STARTED when clocked in"
               (save-excursion
@@ -597,11 +601,7 @@
                   (org-back-to-heading t)
                   (if (looking-at org-outline-regexp) (goto-char (1- (match-end 0))))
                   (if (looking-at (concat " +" org-todo-regexp "\\( +\\|[ \t]*$\\)"))
-                      (org-todo "STARTED"))))))
-  :init (setq org-replace-disputed-keys t
-              org-todo-keywords '((sequence "TODO" "STARTED" "|" "DONE")
-                                  (sequence "TOLEARN" "LEARNING" "LEARNED" "|" "MASTERED")
-                                  (sequence "|" "CANCELLED"))))
+                      (org-todo "STARTED")))))))
 
 ;;;; Programming