From a89a9fe37a6ac90fa94997775b71e4d6a940c44f Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 11 May 2018 00:55:10 -0400 Subject: [PATCH] Use when instead of if in electric-graphviz-dot-semi --- .emacs.d/init.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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