From 7bd0fc77ce7a63ce9c7220dcdc6f58c906196640 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 30 Oct 2018 14:27:06 +0900 Subject: [PATCH] Add outline-show-all to hook --- emacs.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs.el b/emacs.el index e2c9a0c..4f72b7c 100644 --- a/emacs.el +++ b/emacs.el @@ -1123,6 +1123,8 @@ found, otherwise returns nil." (lambda () (when (string-match "\\.md\\'" buffer-file-name) (set (make-local-variable 'outline-regexp) "#+ ")))) +(add-hook 'outline-mode-hook + 'outline-show-all) (add-to-list 'auto-mode-alist (cons "\\.ol\\'" 'outline-mode)) (add-to-list 'auto-mode-alist (cons "\\.md\\'" 'outline-mode))