Fix `Enable the major mode`

From `subr.el`:

    (add-to-list LIST-VAR ELEMENT &optional APPEND COMPARE-FN)
This commit is contained in:
Leandro Facchinetti 2015-12-28 16:10:38 -05:00
parent 9d3b5e326d
commit 44af621c43
1 changed files with 2 additions and 3 deletions

View File

@ -40,9 +40,8 @@ Enable the major mode
You can automatically enable `puml-mode` for files with extension `.puml` or `plantuml` by adding the following to your `.emacsrc`:
;; Enable puml-mode for PlantUML files
(add-to-list 'auto-mode-alist
'("\\.puml\\'" . puml-mode)
'("\\.plantuml\\'" . puml-mode))
(add-to-list 'auto-mode-alist '("\\.puml\\'" . puml-mode))
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . puml-mode))
Of course, you can always enable manually the major mode by typing `M-x puml-mode` once in the desired PlantUML file buffer.