X-Git-Url: https://git.korewanetadesu.com/?p=apt-sources-list.git;a=blobdiff_plain;f=apt-sources-list.el;h=f5b049ca19c0b12f8d688bb2b0a5ca83dab37d43;hp=980499de9850b4a21ca9eca9de3bbe79f3c61edd;hb=4cffa644e1db4b2f7214d61efd6e6882150887bf;hpb=e8261b36795effef618165dc1c872f569c0a643a diff --git a/apt-sources-list.el b/apt-sources-list.el index 980499d..f5b049c 100644 --- a/apt-sources-list.el +++ b/apt-sources-list.el @@ -138,18 +138,18 @@ single “%s” which will be replaced with the source name." (uri &key name (type "deb") options (suite (car apt-sources-list-suites)) (components (car apt-sources-list-components))) - "Insert a new package source at URI, with extra PROPERTIES. + "Insert a new package source at URI. When called interactively without a prefix argument, assume the type is “deb” and no special options. -When called from Lisp, optional properties include: +When called from Lisp, optional arguments include: -‘:name’ - a source name to include in a leading comment -‘:type’ - “deb” or “deb-src”, defaulting to “deb” -‘:options’ - an options string, without […] delimiters -‘:suite’ - defaults to the first of ‘apt-sources-list-suites’ -‘:components’ - defaults to the first of ‘apt-sources-list-components’ +NAME - a source name to include in a leading comment +TYPE - “deb” or “deb-src”, defaulting to “deb” +OPTIONS - an options string, without […] delimiters +SUITE - defaults to the first item of ‘apt-sources-list-suites’ +COMPONENTS - defaults to the first item of ‘apt-sources-list-components’ You should read the official APT documentation for further explanation of the format." @@ -362,6 +362,7 @@ is not a correctly-formatted APT source." (setq-local comment-start-skip "#+ *") (font-lock-add-keywords nil apt-sources-list-font-lock-keywords)) +;;;###autoload (add-to-list 'auto-mode-alist (cons (rx (or (and (any "./") "sources.list")