diff --git a/docs/config.el b/docs/config.el index 093ee8c..0a7f879 100755 --- a/docs/config.el +++ b/docs/config.el @@ -2,9 +2,36 @@ ;; https://emacs.stackexchange.com/questions/38437/org-mode-batch-export-missing-syntax-highlighting (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 'font-lock) (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) (defconst maximal-integer (lsh -1 -1) diff --git a/tools/create_doc.sh b/tools/create_doc.sh index aba0b93..38b34fa 100755 --- a/tools/create_doc.sh +++ b/tools/create_doc.sh @@ -30,7 +30,6 @@ cd $TMPDIR emacs --batch \ --load ${QMCKL_ROOT}/docs/htmlize.el \ --load ${QMCKL_ROOT}/docs/config.el \ - --load ${QMCKL_ROOT}/tools/init.el \ $INPUT -f org-html-export-to-html if [[ $? -eq 0 ]] diff --git a/tools/init.el b/tools/init.el index a5f9301..bc33d5e 100644 --- a/tools/init.el +++ b/tools/init.el @@ -46,7 +46,7 @@ (emacs-lisp . t) (shell . t) (python . t) - (C . t) + (C . t) (org . t) (makefile . t) ))