From 51d39c5dc18ad4a3e634a6d8c64634a7487a1470 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 23 Aug 2018 23:57:52 -0400 Subject: [PATCH] Move graphviz-dot-mode config to correct place --- .emacs.d/init.el | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) 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))