summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpsg <>2008-04-12 13:10:57 +0000
committerpsg <>2008-04-12 13:10:57 +0000
commitfb953c6775642e49b34a27a07c45c845bb7161ec (patch)
tree291261309b0094bdef9efad5c4630648fcf40341
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).
-rw-r--r--debian-el.el10
-rw-r--r--debian-el.texi9
2 files changed, 12 insertions, 7 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
diff --git a/debian-el.texi b/debian-el.texi
index db8d810..468e3d6 100644
--- a/debian-el.texi
+++ b/debian-el.texi
@@ -45,7 +45,7 @@ basis, do:
@end example
@menu
-* apt-sources:: Mode for editing apt source.list file
+* apt-sources:: Mode for editing apt sources.list files
* apt-utils:: Emacs interface to APT
* debian-bug:: Report a bug to Debian's bug tracking system
* deb-view:: View Debian package archive files with tar-mode
@@ -69,10 +69,11 @@ works, this text is also licensed under the GPL V2 (See
@email{psg@@debian.org}.
@node apt-sources, apt-utils, Top, Top
-@chapter apt-sources - Mode for editing apt source.list file.
+@chapter apt-sources - Mode for editing apt sources.list files.
-This mode is for editing @file{/etc/apt/sources.list}, the APT
-(Advanced Package Tool) configuration file found on Debian systems.
+This mode is for editing @file{/etc/apt/sources.list} and
+@file{/etc/apt/sources.list.d/*.list}, the APT (Advanced Package Tool)
+configuration files found on Debian systems.
APT is a package retrieval tool for Debian; for example you could
install Emacs with the command: