diff options
author | psg <> | 2003-11-04 02:08:45 +0000 |
---|---|---|
committer | psg <> | 2003-11-04 02:08:45 +0000 |
commit | 3d0030e7cda1b771168c9fa1b764f0de5a17466c (patch) | |
tree | d7491659fc519394bb23932bff77a0c3d2005857 /debian-copyright.el | |
parent | a4814f0bb1eb98eaa567173dc7a2d8cbd10b10c6 (diff) |
Add autoload tags and use them in package startup.
Diffstat (limited to 'debian-copyright.el')
-rw-r--r-- | debian-copyright.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debian-copyright.el b/debian-copyright.el index fe3f3aa..6b71971 100644 --- a/debian-copyright.el +++ b/debian-copyright.el @@ -56,6 +56,7 @@ (modify-syntax-entry ?\\ ". " debian-copyright-mode-syntax-table) (modify-syntax-entry ?' "w " debian-copyright-mode-syntax-table)) +;;;###autoload (defun debian-copyright-mode () "Mode to edit and read debian/copyright. \\{debian-copyright-mode-map}" @@ -83,6 +84,12 @@ )) (run-hooks 'debian-copyright-mode-hook)) +(add-to-list 'auto-mode-alist '("debian/.*copyright$" . debian-copyright-mode)) +(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)) + (run-hooks 'debian-copyright-mode-load-hook) (provide 'debian-copyright) |