Don't call hook two times

define-derived-mode macro puts run-hook code after body so it is not
necessary to call it manually.
This commit is contained in:
Syohei YOSHIDA 2016-10-17 15:39:34 +09:00 committed by Carlo Sciolla
parent 40e2ff222c
commit 314674796f
1 changed files with 1 additions and 4 deletions

View File

@ -346,10 +346,7 @@ Shortcuts Command Name
(set (make-local-variable 'comment-end) "'/")
(set (make-local-variable 'comment-multi-line) t)
(set (make-local-variable 'comment-style) 'extra-line)
(setq font-lock-defaults '((plantuml-font-lock-keywords) nil t))
; Run hooks:
(run-mode-hooks 'plantuml-mode-hook))
(setq font-lock-defaults '((plantuml-font-lock-keywords) nil t)))
(defun plantuml-deprecation-warning ()
"Warns the user about the deprecation of the `puml-mode' project."