From b61c31f0e465b97f60a2aff9297eaca628e069e2 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Sun, 5 Apr 2020 17:51:14 +0200
Subject: [PATCH] Modifie la configuration d'org-mode pour de meilleures
 sorties pdf
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Les listing sont maintenant coloriƩs en fonction du langage de
programmation.
---
 Configuration.org | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/Configuration.org b/Configuration.org
index 7a2580e..33d4435 100644
--- a/Configuration.org
+++ b/Configuration.org
@@ -108,10 +108,14 @@ Org bullets makes things look pretty
     :pin org)
 
   (setenv "BROWSER" "firefox")
+
   (use-package org-bullets
     :ensure t
     :config
-    (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
+    (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
+    (add-to-list 'org-latex-packages-alist '("" "listingsutf8"))
+    (add-to-list 'org-latex-packages-alist '("" "minted")))
+
   (custom-set-variables
    '(org-default-notes-file (concat org-directory "/notes.org"))
    '(org-export-html-postamble nil)
@@ -120,7 +124,7 @@ Org bullets makes things look pretty
    '(org-startup-indented t)
    '(org-confirm-babel-evaluate nil)
    '(org-src-fontify-natively t)
-   )
+   '(org-latex-listings 'minted))
 
   (setq org-file-apps
         (append '(
@@ -145,7 +149,8 @@ Org bullets makes things look pretty
     (noflet ((switch-to-buffer-other-window (buf) (switch-to-buffer buf)))
             (org-capture)))
 
-  (define-key org-mode-map (kbd "C-c >") (lambda () (interactive (org-time-stamp-inactive))))
+  (define-key org-mode-map (kbd "C-c >")
+    (lambda () (interactive (org-time-stamp-inactive))))
 
   (use-package htmlize :ensure t)
 
-- 
GitLab