summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-emacs/ebuild-mode/ebuild-mode-9999.ebuild4
-rw-r--r--app-emacs/ebuild-mode/files/50ebuild-mode-gentoo.el3
2 files changed, 6 insertions, 1 deletions
diff --git a/app-emacs/ebuild-mode/ebuild-mode-9999.ebuild b/app-emacs/ebuild-mode/ebuild-mode-9999.ebuild
index 77f4ee4..ae0303c 100644
--- a/app-emacs/ebuild-mode/ebuild-mode-9999.ebuild
+++ b/app-emacs/ebuild-mode/ebuild-mode-9999.ebuild
@@ -12,9 +12,11 @@ inherit readme.gentoo-r1 elisp git-r3
DESCRIPTION="Emacs modes for editing ebuilds and other Gentoo specific files"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
-LICENSE="GPL-2+"
+LICENSE="GPL-2+ GPL-3" # GPL-3 (only) for glep-mode.el
SLOT="0"
+DEPEND="sys-apps/texinfo"
+
S="${WORKDIR}/${PN}"
DOCS="ChangeLog keyword-generation.sh"
ELISP_TEXINFO="${PN}.texi"
diff --git a/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo.el b/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo.el
index 5a09692..8683a65 100644
--- a/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo.el
+++ b/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo.el
@@ -3,11 +3,14 @@
"Major mode for Portage .ebuild and .eclass files." 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
'("/[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 'interpreter-mode-alist '("openrc-run" . sh-mode))
(add-to-list 'interpreter-mode-alist '("runscript" . sh-mode))
(modify-coding-system-alist 'file "\\.\\(ebuild\\|eclass\\)\\'" 'utf-8)