diff options
| author | Preston Pan <ret2pop@nullring.xyz> | 2026-03-14 11:56:02 -0700 |
|---|---|---|
| committer | Preston Pan <ret2pop@nullring.xyz> | 2026-03-14 11:56:02 -0700 |
| commit | 1f04e4d007d7fd56d997e2148b7d01db444f0495 (patch) | |
| tree | 75a7deaf92d50eb28359893ecdf15d496974e683 /config | |
| parent | 429f7718aee4e6cab23527a481fe25f801a621aa (diff) | |
remove headers
Diffstat (limited to 'config')
| -rw-r--r-- | config/emacs.org | 18 |
1 files changed, 14 insertions, 4 deletions
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 "<style[^>]*>" "") (s-replace "</style>" "") + (s-replace "<![CDATA[/*><![CDATA[/*>\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: |
