about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-editor.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el
index 2f3789d..a4704a5 100644
--- a/.emacs.d/lisp/init-editor.el
+++ b/.emacs.d/lisp/init-editor.el
@@ -314,11 +314,8 @@ With a prefix argument, moves up `current-prefix-arg' sexps first."
               ("r" . cider-insert-region-in-repl)))
 
 (use-package repeat-fu
-  ;;:commands repeat-fu-mode
   :bind ("M-+" . repeat-fu-execute)
-  :hook (after-change-mode-hook . (lambda ()
-                                    (when (and (not (minibufferp)) (not (derived-mode-p 'special-mode)))
-                                      (repeat-fu-mode)))))
+  :hook ((prog-mode text-mode) . repeat-fu-mode))
 
 (provide 'init-editor)
 ;;; init-editor.el ends here