1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-06-30 00:44:52 +02:00

Fixed doc creation

This commit is contained in:
Anthony Scemama 2021-03-06 19:46:27 +01:00
parent 0f15844bf3
commit dca597a3ab
3 changed files with 28 additions and 2 deletions

View File

@ -2,9 +2,36 @@
;; https://emacs.stackexchange.com/questions/38437/org-mode-batch-export-missing-syntax-highlighting ;; https://emacs.stackexchange.com/questions/38437/org-mode-batch-export-missing-syntax-highlighting
(package-initialize) (package-initialize)
(add-to-list 'package-archives
'("gnu" . "https://elpa.gnu.org/packages/"))
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(setq package-archive-priorities '(("melpa-stable" . 100)
("melpa" . 50)
("gnu" . 10)))
(require 'htmlize) (require 'htmlize)
(require 'font-lock) (require 'font-lock)
(require 'subr-x) ;; for `when-let' (require 'subr-x) ;; for `when-let'
(setq org-confirm-babel-evaluate nil)
(global-font-lock-mode t)
(org-babel-do-load-languages
'org-babel-load-languages
'(
(emacs-lisp . t)
(shell . t)
(python . t)
(C . t)
(org . t)
(makefile . t)
))
(unless (boundp 'maximal-integer) (unless (boundp 'maximal-integer)
(defconst maximal-integer (lsh -1 -1) (defconst maximal-integer (lsh -1 -1)

View File

@ -30,7 +30,6 @@ cd $TMPDIR
emacs --batch \ emacs --batch \
--load ${QMCKL_ROOT}/docs/htmlize.el \ --load ${QMCKL_ROOT}/docs/htmlize.el \
--load ${QMCKL_ROOT}/docs/config.el \ --load ${QMCKL_ROOT}/docs/config.el \
--load ${QMCKL_ROOT}/tools/init.el \
$INPUT -f org-html-export-to-html $INPUT -f org-html-export-to-html
if [[ $? -eq 0 ]] if [[ $? -eq 0 ]]