From 37d7a58d0b9ab87581d3539102337e9b04c6937d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 4 Aug 2016 10:02:21 -0700 Subject: [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. --- emacs.d/lib/org-settings.el | 12 ++++++------ 1 file 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") -- cgit 1.4.1