summaryrefslogtreecommitdiff
path: root/debian-el.el
diff options
context:
space:
mode:
authorpsg <>2008-04-12 13:10:57 +0000
committerpsg <>2008-04-12 13:10:57 +0000
commitfb953c6775642e49b34a27a07c45c845bb7161ec (patch)
tree291261309b0094bdef9efad5c4630648fcf40341 /debian-el.el
parent84d3bd49d6fc0cbe5a1e89fb95b0a405298f8c5e (diff)
Enable apt-sources-mode for files in /etc/apt/sources.list.d/".
Thanks to Géraud Meyer for the report and patch (Closes: #475701).
Diffstat (limited to 'debian-el.el')
-rw-r--r--debian-el.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/debian-el.el b/debian-el.el
index 826c8aa..81ad523 100644
--- a/debian-el.el
+++ b/debian-el.el
@@ -6,6 +6,9 @@
;;; History:
;;
+;; 2008-04-12 - Géraud Meyer
+;; - Use apt-sources-mode for files in /etc/apt/sources.list.d/ too.
+;; - Use \' instead of $ for the end of filenames.
;; 2003-09-01 - Peter Galbraith
;; - Created.
@@ -19,8 +22,9 @@
;;(require 'debian-el-custom)
;; apt-sources
-(add-to-list 'auto-mode-alist '("sources.list$" . apt-sources-mode))
-(defgroup apt-sources nil "Mode for editing apt source.list file"
+(add-to-list 'auto-mode-alist '("sources\\.list\\'" . apt-sources-mode))
+(add-to-list 'auto-mode-alist '("sources\\.list\\.d/.*\\.list\\'" . apt-sources-mode))
+(defgroup apt-sources nil "Mode for editing apt sources.list files"
:group 'tools
:prefix "apt-sources-"
:link '(custom-manual "(debian-el)apt-sources")
@@ -49,7 +53,7 @@
;; deb-view.el
(setq auto-mode-alist
- (append '(("\\.u?deb$" . deb-view-mode)) auto-mode-alist))
+ (append '(("\\.u?deb\\'" . deb-view-mode)) auto-mode-alist))
(defgroup deb-view nil
"View Debian package files with tar-mode"
:group 'tools