From ee1ef0de3c8453f5e3a0f7b1512f038811f54188 Mon Sep 17 00:00:00 2001
From: Philippe Dosch <Philippe.Dosch@loria.fr>
Date: Thu, 6 Mar 2025 15:22:27 +0100
Subject: [PATCH] =?UTF-8?q?Bugfix=20suite=20=C3=A0=20l'ajout=20de=20abbrev?=
 =?UTF-8?q?/yasnippet=20(effets=20de=20bord=20sur=20auto-fill)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .emacs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.emacs b/.emacs
index 1dacaaa..71ca4cc 100644
--- a/.emacs
+++ b/.emacs
@@ -1039,7 +1039,8 @@
 (defun my-space-no-expand ()
   "Insère un espace sans expanser d’abréviation."
   (interactive)
-  (insert " "))
+  (let ((abbrev-mode nil))  ;; Désactive temporairement abbrev-mode
+    (self-insert-command 1 ? )))
 
 ;; Associer l’espace à cette fonction dans les modes souhaités
 (dolist (hook '(text-mode-hook prog-mode-hook))
-- 
GitLab