Pull org from main to fontify src blocks without a language

main
Carsten Kragelund 2023-05-17 18:00:19 +02:00
parent 807e2ab36f
commit 92535124c3
Signed by: nyx
GPG Key ID: CADDADEEC9F753C0
3 changed files with 7 additions and 4 deletions

@ -34,6 +34,7 @@
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
(add-to-list 'custom-theme-load-path (concat (getenv "HOME") "/source/ctp-emacs"))
(load-theme 'catppuccin t t)
(setq doom-theme 'catppuccin)
;; This determines the style of line numbers in effect. If set to `nil', line
@ -77,10 +78,11 @@
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
(use-package! org
:config
(setq org-src-fontify-natively t)
(add-to-list 'org-src-block-faces '("" '(:foreground (catppuccin-get-color 'green))))
(add-to-list 'org-src-block-faces (list "" (list :foreground (catppuccin-get-color 'green))))
(defun ctp/text-org-blocks ()
(face-remap-add-relative 'org-block (list :foreground (catppuccin-get-color 'text))))

@ -49,4 +49,5 @@
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
;(unpin! t)
(package! meson-mode)
(package! org-mode :pin "fe74a3ed2d8")
(package! org :pin "fe74a3ed2d8"
:recipe (:host nil :repo "https://git.savannah.gnu.org/git/emacs/org-mode.git"))

@ -27,7 +27,7 @@
if [ ! -d "$DOOMLOCALDIR" ]; then
${config.xdg.configHome}/emacs/bin/doom install
else
${config.xdg.configHome}/emacs/bin/doom sync -u -e
${config.xdg.configHome}/emacs/bin/doom sync -e
fi
''}";
};
@ -45,7 +45,7 @@
if [ ! -d "$DOOMLOCALDIR" ]; then
${config.xdg.configHome}/emacs/bin/doom install
else
${config.xdg.configHome}/emacs/bin/doom sync -u -e
${config.xdg.configHome}/emacs/bin/doom sync -e
fi
''}";
};