editor/rotate-text: conform to hook conventions
And add it<->xit and describe<->xdescribe rotate-text patterns (for buttercup tests).
This commit is contained in:
parent
e0fe2a85d1
commit
017aa6a9f7
2 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
`rotate-text' will cycle through."
|
||||
(declare (indent defun))
|
||||
(dolist (mode (doom-enlist modes))
|
||||
(let ((fn-name (intern (format "+rotate-text|init-%s" mode))))
|
||||
(let ((fn-name (intern (format "+rotate-text-init-%s-h" mode))))
|
||||
(fset fn-name
|
||||
(lambda ()
|
||||
(setq-local rotate-text-local-symbols symbols)
|
||||
|
|
|
@ -32,7 +32,9 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.")
|
|||
("when" "unless")
|
||||
("advice-add" "advice-remove")
|
||||
("add-hook" "remove-hook")
|
||||
("add-hook!" "remove-hook!")))
|
||||
("add-hook!" "remove-hook!")
|
||||
("it" "xit")
|
||||
("describe" "xdescribe")))
|
||||
|
||||
(setq-hook! 'emacs-lisp-mode-hook
|
||||
tab-width (or lisp-indent-offset 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue