diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 33aee2c..7231353 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -220,12 +220,12 @@ "Terminate line and indent next line." (interactive) (insert ";") - (if (and graphviz-dot-auto-indent-on-semi - (not (graphviz-dot-comment-or-string-p))) - (save-excursion - (beginning-of-line) - (skip-chars-forward " \t") - (graphviz-dot-indent-line)) + (when (and graphviz-dot-auto-indent-on-semi + (not (graphviz-dot-comment-or-string-p))) + (save-excursion + (beginning-of-line) + (skip-chars-forward " \t") + (graphviz-dot-indent-line)) (delete-horizontal-space)))) (use-package frame