summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 39b0e98..86e1ca1 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -68,7 +68,8 @@ This function is meant to be used in conjuction with `read-string' and
(defun mm-do-and-center (function &rest arguments)
"Call FUNCTION with ARGUMENTS and then center the screen."
(apply function arguments)
- (recenter))
+ (when (called-interactively-p)
+ (recenter)))
(defmacro mm-comment (&rest _body)
"Comment out BODY. A cleaner alternative to line-commenting a region."