From 61376a2ca0774f71ef2d2942ad57b7aa0863013b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 7 May 2021 13:31:30 -0400 Subject: [PATCH] Fix #5001: disable formatter in org-msg-edit-mode --- modules/editor/format/config.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/editor/format/config.el b/modules/editor/format/config.el index d77eb7ce3..4f3719338 100644 --- a/modules/editor/format/config.el +++ b/modules/editor/format/config.el @@ -1,11 +1,12 @@ ;;; editor/format/config.el -*- lexical-binding: t; -*- (defvar +format-on-save-enabled-modes - '(not emacs-lisp-mode ; elisp's mechanisms are good enough - sql-mode ; sqlformat is currently broken - tex-mode ; latexindent is broken + '(not emacs-lisp-mode ; elisp's mechanisms are good enough + sql-mode ; sqlformat is currently broken + tex-mode ; latexindent is broken latex-mode - rustic-mode) ; handled by `rustic-rustfmt' + rustic-mode ; handled by `rustic-rustfmt' + org-msg-edit-mode) ; doesn't need a formatter "A list of major modes in which to reformat the buffer upon saving. If this list begins with `not', then it negates the list.