Browse Source

Add outline-show-all to hook

master
10sr 6 years ago
parent
commit
7bd0fc77ce
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      emacs.el

+ 2
- 0
emacs.el View File

@@ -1123,6 +1123,8 @@ found, otherwise returns nil."
(lambda () (lambda ()
(when (string-match "\\.md\\'" buffer-file-name) (when (string-match "\\.md\\'" buffer-file-name)
(set (make-local-variable 'outline-regexp) "#+ ")))) (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 "\\.ol\\'" 'outline-mode))


(add-to-list 'auto-mode-alist (cons "\\.md\\'" 'outline-mode)) (add-to-list 'auto-mode-alist (cons "\\.md\\'" 'outline-mode))


Loading…
Cancel
Save