summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: