From ea8d18f591229b66f489230c1947096c0663f190 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 1 Dec 2014 15:11:29 -0800 Subject: [PATCH] Remove newlines from org-agenda mode to fix the post-command-hook issue. --- init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 3130ab18..f19abed6 100644 --- a/init.el +++ b/init.el @@ -548,7 +548,9 @@ buffer is not visiting a file." (guide-key/add-local-guide-key-sequence "C-c C-x") (guide-key/add-local-highlight-command-regexp "org-")) (add-hook 'org-mode-hook 'guide-key/my-hook-function-for-org-mode) - (add-hook 'org-mode-hook (lambda () (linum-mode 0))))) + (defun disable-linum-mode () (linum-mode 0)) + (add-hook 'org-mode-hook 'disable-linum-mode) + (add-hook 'org-agenda-mode-hook 'disable-linum-mode))) (use-package epg :ensure t