Fix improperly initialized code folding system
This commit is contained in:
parent
323b2f6c2f
commit
34d1364c5b
2 changed files with 31 additions and 27 deletions
|
@ -7,15 +7,17 @@
|
|||
;;
|
||||
;; So this is my effort to combine them.
|
||||
|
||||
;; Initialize the two modes
|
||||
(evil-vimish-fold-mode +1)
|
||||
|
||||
|
||||
;; --- fold functions ---------------------
|
||||
|
||||
(defun +evil--vimish-fold-p ()
|
||||
(cl-some #'vimish-fold--vimish-overlay-p (overlays-at (point))))
|
||||
|
||||
(defun +evil--ensure-modes ()
|
||||
"Ensure hs-minor-mode is enabled."
|
||||
(unless (bound-and-true-p hs-minor-mode)
|
||||
(hs-minor-mode +1)))
|
||||
|
||||
|
||||
;; --- fold commands ----------------------
|
||||
|
||||
;;;###autoload
|
||||
(defun +evil-fold-p ()
|
||||
(or (+evil--vimish-fold-p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue