From 8e40fae6c23b4033f160b3c950d3913377540b06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Hauspie?= <michael.hauspie@univ-lille.fr>
Date: Wed, 26 Feb 2025 14:14:01 +0100
Subject: [PATCH] Change how org-mode displays inline images

---
 configuration.org | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/configuration.org b/configuration.org
index 5766335..05e4320 100644
--- a/configuration.org
+++ b/configuration.org
@@ -66,7 +66,7 @@ Then add package repositories
 
 #+BEGIN_SRC emacs-lisp
 (require 'package)
-                                        ;  (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
 (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/") t)
 (unless (fboundp 'package-activate-all) (package-initialize))
 #+END_SRC
@@ -540,6 +540,7 @@ org with contributed packages added.
                '("el" . "src emacs-lisp"))
   (set-face-foreground 'org-verbatim "orange1")
   ;; Define a document class that do not use parts and start with chapters for latex export
+  (setq org-image-actual-width nil)
   )
 #+END_SRC
 
@@ -607,7 +608,7 @@ it with =visual-fill-column= to enhance the visual look of the presentation.
   (display-line-numbers-mode 0)
   (menu-bar-mode 0)
   (scroll-bar-mode 0)  
-
+  (org-display-inline-images)
   ;; Hide emphasis markers on formatted text
   (setq org-hide-emphasis-markers t)
 
@@ -656,6 +657,7 @@ it with =visual-fill-column= to enhance the visual look of the presentation.
   (display-line-numbers-mode 1)
   (menu-bar-mode 1)
   (scroll-bar-mode 1)
+  (org-remove-inline-images)
   ;; Reset font customizations
   (setq-local face-remapping-alist nil)
   ;; Show emphasis markers on formatted text
@@ -1181,7 +1183,7 @@ cargo install slint-lsp
   #+end_src
 
 
-*** Protocol buffers
+** Protocol buffers
 
 #+begin_src emacs-lisp
 (use-package protobuf-mode)
-- 
GitLab