summaryrefslogtreecommitdiff
path: root/config/emacs.org
diff options
context:
space:
mode:
Diffstat (limited to 'config/emacs.org')
-rw-r--r--config/emacs.org18
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: