branch: elpa/logview commit b687711aa11e75d64c9f4d899f93dfbe316309ce Author: Paul Pogonyshev <pogonys...@gmail.com> Commit: Paul Pogonyshev <pogonys...@gmail.com>
When adding self to 'auto-mode-alist', append rather than prepend. --- logview.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/logview.el b/logview.el index a899cb1b18..8e087e2f03 100644 --- a/logview.el +++ b/logview.el @@ -37,8 +37,11 @@ (eval-when-compile (require 'cl-lib)) +;; We _append_ self to the list of mode rules so as to not clobber +;; other rules, as '.log' is a common file extension. This also gives +;; the user an easy way to prevent 'logview' from being autoselected. ;;;###autoload -(add-to-list 'auto-mode-alist '("\\.log\\(?:\\.[0-9]+\\)?\\'" . logview-mode)) +(add-to-list 'auto-mode-alist '("\\.log\\(?:\\.[0-9]+\\)?\\'" . logview-mode) t)