mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
Add doctstrings to +evil/fold-* commands
This commit is contained in:
@ -38,6 +38,9 @@
|
|||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +evil/fold-toggle ()
|
(defun +evil/fold-toggle ()
|
||||||
|
"Toggle the fold at point.
|
||||||
|
|
||||||
|
Targets `vimmish-fold', `hideshow' and `outline' folds."
|
||||||
(interactive)
|
(interactive)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(cond ((+evil--vimish-fold-p) (vimish-fold-toggle))
|
(cond ((+evil--vimish-fold-p) (vimish-fold-toggle))
|
||||||
@ -49,6 +52,9 @@
|
|||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +evil/fold-open ()
|
(defun +evil/fold-open ()
|
||||||
|
"Open the folded region at point.
|
||||||
|
|
||||||
|
Targets `vimmish-fold', `hideshow' and `outline' folds."
|
||||||
(interactive)
|
(interactive)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(cond ((+evil--vimish-fold-p) (vimish-fold-unfold))
|
(cond ((+evil--vimish-fold-p) (vimish-fold-unfold))
|
||||||
@ -59,6 +65,9 @@
|
|||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +evil/fold-close ()
|
(defun +evil/fold-close ()
|
||||||
|
"Close the folded region at point.
|
||||||
|
|
||||||
|
Targets `vimmish-fold', `hideshow' and `outline' folds."
|
||||||
(interactive)
|
(interactive)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(cond ((+evil--vimish-fold-p) (vimish-fold-refold))
|
(cond ((+evil--vimish-fold-p) (vimish-fold-refold))
|
||||||
|
Reference in New Issue
Block a user