FINALLY! fix emacs source block theme

This commit is contained in:
dongdigua 2023-05-29 16:10:46 +08:00
parent c81a1a60fb
commit 00dc39c6e2
4 changed files with 18 additions and 9 deletions

View File

@ -21,10 +21,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Everforest Theme
run: git clone --depth 1 https://github.com/dongdigua/everforest-emacs.git ~/.emacs.d/everforest
- name: Install Emacs
uses: purcell/setup-emacs@master
with:
version: 28.1
version: 28.2
- name: Prepare
run: |

View File

@ -199,9 +199,9 @@ https://github.com/rgb-24bit/org-html-theme-list org-joshua
pre {
font-family: Monaco, Consolas, "Lucida Console", monospace;
color: black;
/* background-color: #f2f2f2; /\* FROM worg.css *\/ */
background-color: #d7dfed; /* FROM Bryan Ford */
/* color: black; */
background-color: #f2f2f2; /* FROM worg.css */
/* background-color: #d7dfed; /\* FROM Bryan Ford *\/ */
padding: 1.2em;
overflow: auto;
}
@ -308,7 +308,7 @@ https://github.com/rgb-24bit/org-html-theme-list org-joshua
#postamble {
padding: .3em;
margin-bottom: 1em;
border: 1px solid gray;
/* border: 1px solid gray; */
background-color: #dddaec; /* Gentoo Purple */
}

View File

@ -1,8 +1,11 @@
EMACS=emacs
ORG_CONFIG_FILE=publish_config.el
EMACS_OPTS=--batch --eval "(load-file \"$(ORG_CONFIG_FILE)\")" -f myweb-publish
TARGET=ls ../*.html* | grep -v "index\|xmr\|404.html"
# --script and --batch can't load the theme
# GUI will have a better color, but can't use in CI
EMACS_OPTS=-Q -nw --eval "(load-file \"$(ORG_CONFIG_FILE)\")" -f myweb-publish
all: html
html:

View File

@ -13,14 +13,16 @@
(package-install p)))
(eval-when-compile
(require 'org)
(require 'ox)
(require 'ox-publish)
(require 'webfeeder))
(add-to-list 'custom-theme-load-path "~/.emacs.d/everforest")
(load-theme 'everforest-hard-light t)
(setq org-html-validation-link nil
org-export-with-toc 1
org-export-with-sub-superscripts '{})
(setq org-html-postamble-format
'(("en"
"
@ -89,5 +91,6 @@
:title "dongdigua's blog"
:description "Blog!"
:builder 'webfeeder-make-rss)
)
(kill-emacs))