Move graphviz-dot-mode config to correct place
This commit is contained in:
parent
43f8d06f83
commit
51d39c5dc1
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user