From a69fe951fe5134846717bc0b454cf080e60ab58d Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Thu, 19 Mar 2020 19:50:33 +0100 Subject: [PATCH] app-emacs/meson-mode: install a site-init file Signed-off-by: Marek Szuba --- app-emacs/meson-mode/files/50meson-mode-gentoo.el | 4 ++++ .../{meson-mode-0.2.ebuild => meson-mode-0.2-r1.ebuild} | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 app-emacs/meson-mode/files/50meson-mode-gentoo.el rename app-emacs/meson-mode/{meson-mode-0.2.ebuild => meson-mode-0.2-r1.ebuild} (93%) diff --git a/app-emacs/meson-mode/files/50meson-mode-gentoo.el b/app-emacs/meson-mode/files/50meson-mode-gentoo.el new file mode 100644 index 000000000000..e1a3b4991dab --- /dev/null +++ b/app-emacs/meson-mode/files/50meson-mode-gentoo.el @@ -0,0 +1,4 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'meson-mode "meson-mode" + "Major mode for editing Meson build-system files" t) +(add-to-list 'auto-mode-alist '("/meson\\(\\.build\\|_options\\.txt\\)\\'" . meson-mode)) diff --git a/app-emacs/meson-mode/meson-mode-0.2.ebuild b/app-emacs/meson-mode/meson-mode-0.2-r1.ebuild similarity index 93% rename from app-emacs/meson-mode/meson-mode-0.2.ebuild rename to app-emacs/meson-mode/meson-mode-0.2-r1.ebuild index ff33748c1148..4280da270001 100644 --- a/app-emacs/meson-mode/meson-mode-0.2.ebuild +++ b/app-emacs/meson-mode/meson-mode-0.2-r1.ebuild @@ -15,3 +15,5 @@ SLOT="0" KEYWORDS="~amd64" DOCS=( README.md ) + +SITEFILE="50${PN}-gentoo.el" -- 2.26.2