Move doom*load-hs-minor-mode into core-editor (not general enough)
This commit is contained in:
parent
e7d0e9f9ec
commit
1ea237ebd3
2 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -39,11 +39,6 @@
|
|||
(beginning-of-line))
|
||||
(setq *linum-mdown-line* nil))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom*load-hs-minor-mode ()
|
||||
(hs-minor-mode 1)
|
||||
(advice-remove 'evil-toggle-fold 'doom-load-hs-minor-mode))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom/reselect-paste ()
|
||||
"Go back into visual mode and reselect the last pasted region."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue