Move graphviz-dot-mode config to correct place

This commit is contained in:
Adam Goldsmith 2018-08-23 23:57:52 -04:00
parent 43f8d06f83
commit 51d39c5dc1
1 changed files with 15 additions and 15 deletions

View File

@ -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))