summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-08-04 10:02:21 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-08-04 10:02:21 -0700
commit37d7a58d0b9ab87581d3539102337e9b04c6937d (patch)
tree49954bf5a83e0b03e9deb6bf570187adc7d4b34f
parent[git] re-enable colors for diff and so on. (diff)
downloademacs.d-37d7a58d0b9ab87581d3539102337e9b04c6937d.tar.gz
[emacs] fix the configuration for org-mode
The name of the module for `use-package' was incorrect, therefore the
hooks were not loaded when a org file was opened.
Diffstat (limited to '')
-rw-r--r--emacs.d/lib/org-settings.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/emacs.d/lib/org-settings.el b/emacs.d/lib/org-settings.el
index ba67503..0893a59 100644
--- a/emacs.d/lib/org-settings.el
+++ b/emacs.d/lib/org-settings.el
@@ -1,4 +1,4 @@
-(use-package org-mode
+(use-package org
   :bind (("C-c a" . org-agenda)
          ("C-c c" . org-capture)
          ("C-c o" . org-iswitchb))
@@ -6,9 +6,12 @@
   :config
   (progn
     (setq org-startup-indented t
-          org-indent-mode t
           org-return-follows-link t
-          org-blank-before-new-entry nil)))
+          org-blank-before-new-entry nil)
+    (add-hook 'org-mode-hook (lambda ()
+                               (message "yup we're in the hook")
+                               (org-indent-mode t)
+                               (setq truncate-lines nil)))))
 
 (setq org-todo-keywords
       '((sequence "TODO" "IN-PROGRESS" "WAITING" "DONE")))
@@ -25,9 +28,6 @@
                              "~/src/notes/org/work.org"
                              "~/src/notes/org/inbox.org"))
 
-;; org-startup-indented
-(add-hook 'org-mode-hook (lambda () (setq truncate-lines nil)))
-
 (setq org-capture-templates
       '(("t" "Todo" entry (file+headline "~/src/notes/org/inbox.org" "Tasks")
          "* TODO %?\n%a")