diff options
author | Ulrich Müller <ulm@gentoo.org> | 2022-01-10 20:29:59 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2022-01-10 20:30:16 +0100 |
commit | 1e734a64a43b59281f48db6c9594db6c64b8e734 (patch) | |
tree | 3c09358d4941f31fcb30e9c7ea7e237c9c104f29 /app-emacs | |
parent | app-emacs/ebuild-mode: Delete stale file in files dir (diff) | |
download | gentoo-1e734a64a43b59281f48db6c9594db6c64b8e734.tar.gz gentoo-1e734a64a43b59281f48db6c9594db6c64b8e734.tar.bz2 gentoo-1e734a64a43b59281f48db6c9594db6c64b8e734.zip |
app-emacs/ebuild-mode: Enable conf-mode for make.defaults
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/ebuild-mode/ebuild-mode-1.54-r1.ebuild (renamed from app-emacs/ebuild-mode/ebuild-mode-1.54.ebuild) | 4 | ||||
-rw-r--r-- | app-emacs/ebuild-mode/files/50ebuild-mode-gentoo-1.54.el | 30 |
2 files changed, 32 insertions, 2 deletions
diff --git a/app-emacs/ebuild-mode/ebuild-mode-1.54.ebuild b/app-emacs/ebuild-mode/ebuild-mode-1.54-r1.ebuild index c972bf6d3080..54add5db8bed 100644 --- a/app-emacs/ebuild-mode/ebuild-mode-1.54.ebuild +++ b/app-emacs/ebuild-mode/ebuild-mode-1.54-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -17,6 +17,6 @@ BDEPEND="sys-apps/texinfo" DOCS="ChangeLog keyword-generation.sh" ELISP_TEXINFO="${PN}.texi" -SITEFILE="50${PN}-gentoo-1.52.el" +SITEFILE="50${PN}-gentoo-1.54.el" DOC_CONTENTS="Some optional features may require installation of additional packages, like dev-python/docutils-glep for glep." diff --git a/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo-1.54.el b/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo-1.54.el new file mode 100644 index 000000000000..06ae54410391 --- /dev/null +++ b/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo-1.54.el @@ -0,0 +1,30 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'ebuild-mode "ebuild-mode" + "Major mode for Portage .ebuild and .eclass files." t) +(autoload 'ebuild-repo-mode "ebuild-mode" + "Minor mode for files in an ebuild repository." t) +(autoload 'ebuild-repo-mode-maybe-enable "ebuild-mode") +(autoload 'devbook-mode "devbook-mode" + "Major mode for editing the Gentoo Devmanual." t) +(autoload 'gentoo-newsitem-mode "gentoo-newsitem-mode" + "Major mode for Gentoo GLEP 42 news items." t) +(autoload 'glep-mode "glep-mode" + "Major mode for Gentoo Linux Enhancement Proposals." t) + +(add-to-list 'auto-mode-alist '("\\.\\(ebuild\\|eclass\\)\\'" . ebuild-mode)) +(add-to-list 'auto-mode-alist '("/devmanual.*\\.xml\\'" . devbook-mode)) +(add-to-list 'auto-mode-alist + '("/[0-9]\\{4\\}-[01][0-9]-[0-3][0-9]-.+\\.[a-z]\\{2\\}\\.txt\\'" + . gentoo-newsitem-mode)) +(add-to-list 'auto-mode-alist '("/glep.*\\.rst\\'" . glep-mode)) +(add-to-list 'auto-mode-alist + '("/\\(package\\.\\(mask\\|unmask\\|use\\|env\ +\\|license\\|properties\\|accept_\\(keywords\\|restrict\\)\\)\ +\\|\\(package\\.\\)?use.\\(stable\\.\\)?\\(force\\|mask\\)\\)\\'" + . conf-space-mode)) +(add-to-list 'auto-mode-alist + '("/make\\.\\(conf\\|defaults\\)\\'" . conf-unix-mode)) +(add-to-list 'interpreter-mode-alist '("openrc-run" . sh-mode)) +(add-to-list 'interpreter-mode-alist '("runscript" . sh-mode)) +(add-hook 'find-file-hook #'ebuild-repo-mode-maybe-enable) +(modify-coding-system-alist 'file "\\.\\(ebuild\\|eclass\\)\\'" 'utf-8) |