diff options
author | psg <> | 2010-07-28 15:33:45 +0000 |
---|---|---|
committer | psg <> | 2010-07-28 15:33:45 +0000 |
commit | bf5c388d3312a931d35cc714ee057ab39811d97f (patch) | |
tree | ebcb38192f33dcf289f0541f3cf822206be76e82 /debian-copyright.el | |
parent | df5841a53aa37025689c088886c53c21294d80e4 (diff) |
debian-copyright.el: Fix and simplify auto-mode-alist", thanks to Kevin
Ryde (Closes: #587922).
Diffstat (limited to 'debian-copyright.el')
-rw-r--r-- | debian-copyright.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/debian-copyright.el b/debian-copyright.el index 6b71971..214625e 100644 --- a/debian-copyright.el +++ b/debian-copyright.el @@ -21,8 +21,6 @@ (require 'debian-changelog-mode) ;;; Code: -(add-to-list 'auto-mode-alist '("debian/copyright$" . debian-copyright-mode)) -(add-to-list 'auto-mode-alist '("^/usr/share/doc/.*/copyright" . debian-copyright-mode)) (defgroup debian-copyright nil "Debian copyright mode" :group 'tools @@ -84,11 +82,13 @@ )) (run-hooks 'debian-copyright-mode-hook)) -(add-to-list 'auto-mode-alist '("debian/.*copyright$" . debian-copyright-mode)) + +;;;###autoload +(add-to-list 'auto-mode-alist + '("debian/.*copyright\\'" . debian-copyright-mode)) +;;;###autoload (add-to-list 'auto-mode-alist - '("^/usr/share/doc/.*/copyright" . debian-copyright-mode)) -;;;###autoload(add-to-list 'auto-mode-alist '("debian/.*copyright$" . debian-copyright-mode)) -;;;###autoload(add-to-list 'auto-mode-alist '("^/usr/share/doc/.*/copyright" . debian-copyright-mode)) + '("\\`/usr/share/doc/.*/copyright" . debian-copyright-mode)) (run-hooks 'debian-copyright-mode-load-hook) |