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."
|
`rotate-text' will cycle through."
|
||||||
(declare (indent defun))
|
(declare (indent defun))
|
||||||
(dolist (mode (doom-enlist modes))
|
(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
|
(fset fn-name
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(setq-local rotate-text-local-symbols symbols)
|
(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")
|
("when" "unless")
|
||||||
("advice-add" "advice-remove")
|
("advice-add" "advice-remove")
|
||||||
("add-hook" "remove-hook")
|
("add-hook" "remove-hook")
|
||||||
("add-hook!" "remove-hook!")))
|
("add-hook!" "remove-hook!")
|
||||||
|
("it" "xit")
|
||||||
|
("describe" "xdescribe")))
|
||||||
|
|
||||||
(setq-hook! 'emacs-lisp-mode-hook
|
(setq-hook! 'emacs-lisp-mode-hook
|
||||||
tab-width (or lisp-indent-offset 2)
|
tab-width (or lisp-indent-offset 2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue