Load htmlize locally

This commit is contained in:
Gerard Vermeulen 2022-05-22 14:36:55 +02:00
parent 866e6cf2bd
commit 7265a52214

View File

@ -220,7 +220,6 @@ The [[info:emacs#Init File][init file (info)]] does not load the ~custom-file~ a
consult ; consult completing-read consult ; consult completing-read
eglot ; Emacs polyGLOT LSP client eglot ; Emacs polyGLOT LSP client
embark ; act on any buffer selection embark ; act on any buffer selection
htmlize ; convert buffer contents to HTML
magit ; Git Text-based User Interface magit ; Git Text-based User Interface
marginalia ; minibuffer margin notes marginalia ; minibuffer margin notes
no-littering ; keep `user-emacs-directory' clean no-littering ; keep `user-emacs-directory' clean
@ -2326,7 +2325,8 @@ Listing [[lst:by-backend-kbd-org-macro]] defines the tools for the definition of
#+name: lst:by-backend-kbd-org-macro #+name: lst:by-backend-kbd-org-macro
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'emacs (with-eval-after-load 'emacs
(autoload 'htmlize-protect-string "htmlize" nil t) (when (ensure-package-installation 'htmlize)
(autoload 'htmlize-protect-string "htmlize" nil t))
;; https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#orge5c50fd ;; https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#orge5c50fd
(defmacro by-backend (&rest body) (defmacro by-backend (&rest body)