summary refs log tree commit diff
diff options
context:
space:
mode:
-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")