瀏覽代碼

Add outline-show-all to hook

master
10sr 5 年之前
父節點
當前提交
7bd0fc77ce
簽署人: 10sr GPG Key ID: 7BEC428194130EB2
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      emacs.el

+ 2
- 0
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))


Loading…
取消
儲存