From 8aa6315508d75cdb74476ea3f657366c05a0a4d6 Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Mon, 17 Oct 2016 15:39:34 +0900 Subject: [PATCH] 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. --- plantuml-mode.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plantuml-mode.el b/plantuml-mode.el index f441274..fc92235 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -344,10 +344,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."