Move doom*load-hs-minor-mode into core-editor (not general enough)

This commit is contained in:
Henrik Lissner 2016-10-05 12:48:42 +02:00
parent e7d0e9f9ec
commit 1ea237ebd3
2 changed files with 3 additions and 5 deletions

View file

@ -179,6 +179,9 @@
:commands (hs-minor-mode hs-toggle-hiding hs-already-hidden-p)
:config (setq hs-isearch-open t)
:init
(defun doom*load-hs-minor-mode ()
(hs-minor-mode 1)
(advice-remove 'evil-toggle-fold 'doom-load-hs-minor-mode))
(advice-add 'evil-toggle-fold :before 'doom*load-hs-minor-mode)
;; Prettify code folding in emacs
(define-fringe-bitmap 'hs-marker [16 48 112 240 112 48 16] nil nil 'center)