diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 29ff1fa..55f19af 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -213,21 +213,6 @@ (add-hook 'prog-mode-hook #'(lambda () (setq-local show-trailing-whitespace t)))) -(use-package graphviz-dot-mode - :config - ; don't auto-newline on semicolon - (defun electric-graphviz-dot-semi () - "Terminate line and indent next line." - (interactive) - (insert ";") - (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 :config (defun suspend-frame () @@ -500,6 +485,21 @@ :config (dtrt-indent-global-mode 1)) +(use-package graphviz-dot-mode + :config + ; don't auto-newline on semicolon + (defun electric-graphviz-dot-semi () + "Terminate line and indent next line." + (interactive) + (insert ";") + (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 gnuplot-mode :mode ("\\.gp$" . gnuplot-mode))