From 940a1a79372d2f42d217d18ce58512d70ff6bf4e Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Mon, 17 Oct 2016 15:21:00 +0900 Subject: [PATCH] Fix regexp of auto-mode-alist And use "\'" end of string anchor instead of "$". --- plantuml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plantuml-mode.el b/plantuml-mode.el index f441274..c6fb52c 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -330,7 +330,7 @@ Uses prefix (as PREFIX) to choose where to display it: (message "Making completion list...%s" "done"))))) ;;;###autoload -(add-to-list 'auto-mode-alist '("\\.(plantuml|pum|plantuml|plu)$" . plantuml-mode)) +(add-to-list 'auto-mode-alist '("\\.(plantuml\\|pum\\|plantuml\\|plu)\\'" . plantuml-mode)) ;;;###autoload (define-derived-mode plantuml-mode prog-mode "plantuml"