From 1f04e4d007d7fd56d997e2148b7d01db444f0495 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 14 Mar 2026 11:56:02 -0700 Subject: remove headers --- config/emacs.org | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'config') diff --git a/config/emacs.org b/config/emacs.org index 5df511e..9de6f61 100644 --- a/config/emacs.org +++ b/config/emacs.org @@ -205,6 +205,7 @@ of course Emacs was not designed to be fully imperative. This is my org mode configuration, which also configures latex. #+begin_src emacs-lisp :tangle ../nix/init.el (use-package org + :demand t :after (f s dash nix-mode) :hook ((org-mode-hook . remove-annoying-pairing)) @@ -276,8 +277,14 @@ This is my org mode configuration, which also configures latex. (org-habit-show-habits-only-for-today nil "See org habit entries") (org-habit-show-all-today t "Show org habit graph")) -(use-package htmlize - :after (doom-themes catppuccin-theme)) +(when noninteractive + (use-package htmlize + :demand t + :after (catppuccin-theme))) + +(unless noninteractive + (use-package htmlize + :after (doom-themes))) (use-package ox-latex :after (org) @@ -286,6 +293,7 @@ This is my org mode configuration, which also configures latex. (org-latex-pdf-process '("xelatex -interaction=nonstopmode -output-directory=%o %f") "set xelatex as default")) (use-package ox-html + :demand t :after (org htmlize) :custom (org-html-htmlize-output-type 'css "allow styling from CSS file") @@ -304,6 +312,7 @@ This is my org mode configuration, which also configures latex. :config (advice-add 'org-html-latex-environment :around #'org-html-latex-environment-pandoc-fix)) (use-package ox-publish + :demand t :after (org f s dash ox-html) :custom (org-publish-project-alist @@ -322,6 +331,8 @@ This is my org mode configuration, which also configures latex. (->> (create-htmlize-css) (s-replace-regexp "]*>" "") (s-replace "" "") + (s-replace "\n" "") + (s-replace "/*]]>*/-->" "") (s-trim) (minify-css)) (f-read-text "~/monorepo/style.css" 'utf-8) @@ -593,8 +604,7 @@ We want our emacs initialization to be pretty and display useful things. (projects . 5) (agenda . 5) (registers . 5)) "Look at some items") - :config - (dashboard-setup-startup-hook)) + :config (unless noninteractive (dashboard-setup-startup-hook))) #+end_src ** Ivy Ivy is a pretty cool general program for displaying stuff: -- cgit v1.3