summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-03-16 13:13:05 +0100
committerUlrich Müller <ulm@gentoo.org>2021-03-16 13:13:05 +0100
commit654531ebed5435b377f9adb92b098e45cb4f3bea (patch)
tree034d8cf764db2ed4dfbbc096b585dbd548608f2b /app-emacs
parentapp-emacs/emacs-common-gentoo: "Upstream" branch has been renamed (diff)
downloademacs-654531ebed5435b377f9adb92b098e45cb4f3bea.tar.gz
emacs-654531ebed5435b377f9adb92b098e45cb4f3bea.tar.bz2
emacs-654531ebed5435b377f9adb92b098e45cb4f3bea.zip
app-emacs/ebuild-mode: Enable ebuild-repo-mode in find-file-hook
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/ebuild-mode/files/50ebuild-mode-gentoo.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo.el b/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo.el
index e4bbe68..aa1e324 100644
--- a/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo.el
+++ b/app-emacs/ebuild-mode/files/50ebuild-mode-gentoo.el
@@ -21,4 +21,5 @@
. conf-space-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)