Skip to content
Snippets Groups Projects
Commit 7cd5bc66 authored by Philippe Dosch's avatar Philippe Dosch
Browse files

Amélioration gin mode pour rép. mail

parent 1fdd3ef6
No related branches found
No related tags found
No related merge requests found
...@@ -1063,8 +1063,11 @@ ...@@ -1063,8 +1063,11 @@
(interactive) (interactive)
(end-of-line) (end-of-line)
(kill-line) (kill-line)
(delete-char 1) (save-excursion
(just-one-space) (goto-char (point))
(when (re-search-forward ">\\( *>\\)* *" nil t)
(replace-match "" nil t)
(just-one-space)))
(end-of-line) (end-of-line)
(gin-do-auto-fill)) (gin-do-auto-fill))
;; Au niveau du mapping, c'est un peu tricky. Je n'ai pas trouvé le ;; Au niveau du mapping, c'est un peu tricky. Je n'ai pas trouvé le
......
...@@ -58,7 +58,7 @@ white space beyond the hanging indent. Setting this variable makes ...@@ -58,7 +58,7 @@ white space beyond the hanging indent. Setting this variable makes
it buffer-local.") it buffer-local.")
(defvar gin-retain-indent-re (defvar gin-retain-indent-re
"[ \t]*[a-zA-Z-]*>+[ \t]*\\|[ \t]+" "[ \t]*[a-zA-Z-]*>\\( *>\\)*[ \t]*\\|[ \t]+"
"*Regexp that defines how a fill-prefix can look like. "*Regexp that defines how a fill-prefix can look like.
If such a string is seen by gin-guess-prefix in the current line, If such a string is seen by gin-guess-prefix in the current line,
the next line will be indented with it, too. Setting this variable the next line will be indented with it, too. Setting this variable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment