mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
app-emacs/zenburn-theme: Add theme to custom-safe-themes
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
(add-to-list 'custom-theme-load-path "@SITEETC@")
|
||||
(add-to-list 'custom-safe-themes "@SHA256@")
|
||||
|
||||
+6
-2
@@ -20,7 +20,11 @@ SITEFILE="50${PN}-gentoo.el"
|
||||
src_install() {
|
||||
insinto "${SITEETC}/${PN}"
|
||||
doins zenburn-theme.el
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
|
||||
local sha256=$(sha256sum zenburn-theme.el) || die
|
||||
sed "s:@SHA256@:${sha256%% *}:" "${FILESDIR}/${SITEFILE}" \
|
||||
> "${T}/${SITEFILE}" || die
|
||||
elisp-site-file-install "${T}/${SITEFILE}"
|
||||
|
||||
dodoc CHANGELOG.md CONTRIBUTING.md README.md
|
||||
dodoc -r screenshots
|
||||
@@ -28,6 +32,6 @@ src_install() {
|
||||
|
||||
local DOC_CONTENTS="To enable zenburn by default, initialise it
|
||||
in your ~/.emacs:
|
||||
\n\t(load-theme 'zenburn 'no-confirm)"
|
||||
\n\t(load-theme 'zenburn)"
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
Reference in New Issue
Block a user