From e8ef7055c33558839d1b318b0615826274ba1807 Mon Sep 17 00:00:00 2001 From: Konrad Hinsen Date: Wed, 20 Mar 2019 15:00:42 +0100 Subject: [PATCH] Emacs: install htmlize with the other packages --- module2/ressources/emacs_orgmode.org | 8 -------- module2/ressources/rr_org/init.el | 1 + module2/ressources/rr_org/init.org | 1 + 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/module2/ressources/emacs_orgmode.org b/module2/ressources/emacs_orgmode.org index da521a7..ca70b41 100644 --- a/module2/ressources/emacs_orgmode.org +++ b/module2/ressources/emacs_orgmode.org @@ -133,14 +133,6 @@ matplotlib.matplotlib_fname() Open the =matplotlibrc= file and modify the line starting with =backend= to make it =backend : Agg=. -** All platforms: pretty code in HTML export -To have code pretty printing when exporting to HTML, you should -install the =htmlize= package, which is done by opening emacs and -typing the following command: -#+BEGIN_EXAMPLE -M-x package-install RET htmlize RET # where M-x means pressing the "Esc" key then the "x" key -#+END_EXAMPLE - * A simple "reproducible research" emacs configuration This section is illustrated in a [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/9cfc7500f0ef46d288d2317ec7b037b4][video tutorial]] (/"Mise en place Emacs/Orgmode"/ in French). Watching it before following the diff --git a/module2/ressources/rr_org/init.el b/module2/ressources/rr_org/init.el index 434ad12..e5b09e8 100644 --- a/module2/ressources/rr_org/init.el +++ b/module2/ressources/rr_org/init.el @@ -61,6 +61,7 @@ (dolist (pkg '(ess auctex + htmlize exec-path-from-shell)) (when (not (package-installed-p pkg)) (package-install pkg))) diff --git a/module2/ressources/rr_org/init.org b/module2/ressources/rr_org/init.org index 65fb727..8ea4d6f 100644 --- a/module2/ressources/rr_org/init.org +++ b/module2/ressources/rr_org/init.org @@ -86,6 +86,7 @@ document, simply =M-x org-babel-tangle=. #+begin_src emacs-lisp (dolist (pkg '(ess auctex + htmlize exec-path-from-shell)) (when (not (package-installed-p pkg)) (package-install pkg))) -- 2.18.1