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
|
(add-hook 'prog-mode-hook
|
||||||
#'(lambda () (setq-local show-trailing-whitespace t))))
|
#'(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
|
(use-package frame
|
||||||
:config
|
:config
|
||||||
(defun suspend-frame ()
|
(defun suspend-frame ()
|
||||||
@ -500,6 +485,21 @@
|
|||||||
:config
|
:config
|
||||||
(dtrt-indent-global-mode 1))
|
(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
|
(use-package gnuplot-mode
|
||||||
:mode ("\\.gp$" . gnuplot-mode))
|
:mode ("\\.gp$" . gnuplot-mode))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user