Skip to content

Commit

Permalink
app-emacs/zenburn-theme: Add theme to custom-safe-themes
Browse files Browse the repository at this point in the history
Signed-off-by: Ulrich Müller <[email protected]>
  • Loading branch information
ulm committed Aug 19, 2024
1 parent 8b33158 commit 973e323
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions app-emacs/zenburn-theme/files/50zenburn-theme-gentoo.el
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
(add-to-list 'custom-theme-load-path "@SITEETC@")
(add-to-list 'custom-safe-themes "@SHA256@")
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ 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
docompress -x /usr/share/doc/${PF}/screenshots

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
}

0 comments on commit 973e323

Please sign in to comment.