2021-04-09 16:45:44 +02:00
|
|
|
|
;; Thanks to Tobias's answer on Emacs Stack Exchange:
|
|
|
|
|
;; 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 'font-lock)
|
|
|
|
|
(setq org-confirm-babel-evaluate nil)
|
|
|
|
|
(global-font-lock-mode t)
|
|
|
|
|
(setq org-src-fontify-natively t)
|
2021-08-25 15:49:27 +02:00
|
|
|
|
(require 'org)
|
2021-04-09 16:45:44 +02:00
|
|
|
|
|
|
|
|
|
(org-babel-do-load-languages
|
|
|
|
|
'org-babel-load-languages
|
|
|
|
|
'(
|
|
|
|
|
(emacs-lisp . t)
|
|
|
|
|
(python . t)
|
|
|
|
|
(org . t)
|
|
|
|
|
))
|
|
|
|
|
|
2021-07-27 14:48:11 +02:00
|
|
|
|
(setq org-babel-python-command "python3 -q")
|
2021-10-06 10:31:06 +02:00
|
|
|
|
(setq python-indent-guess-indent-offset-verbose nil) ;; Remove warning : Can’t guess python-indent-offset
|
2021-04-09 16:45:44 +02:00
|
|
|
|
|