[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Redshank gets loaded when exporting ELisp code blocks to HTML!?
From: |
Sacha Chua |
Subject: |
Re: [O] Redshank gets loaded when exporting ELisp code blocks to HTML!? |
Date: |
Mon, 07 Apr 2014 11:20:44 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) |
Sebastien Vauban <address@hidden>
writes:
Hello, Sebastien!
> Why are Emacs Lisp minor modes loaded for exporting
> the Org document to HTML?
> If not necessary, this seems suboptimal (performance-wise).
org-export-format-source-code-or-example loads the mode associated with
the language in org-src-lang-modes in order to fontify the block. You
could check if org-export-current-backend is nil before loading anything
that you want to use only interactively.
Maybe like so?
(add-hook 'emacs-lisp-mode-hook (lambda ()
(unless org-export-current-backend
(turn-on-redshank-mode))))
Sacha