From cb5c9cc9ea1dd267a4edcb85da31b31e8543f16d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 29 Aug 2018 12:46:24 +0200 Subject: [PATCH] Don't autoformat emacs-lisp-mode buffers on save This is much too unpredictable, considering the variable nature of elisp indentation, and the possibility that certain functions and their indent behavior may not be defined/declared when the file is being formatted. --- modules/editor/format/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editor/format/config.el b/modules/editor/format/config.el index f71311a9c..cbd65634c 100644 --- a/modules/editor/format/config.el +++ b/modules/editor/format/config.el @@ -1,6 +1,6 @@ ;;; editor/format/config.el -*- lexical-binding: t; -*- -(defvar +format-on-save-enabled-modes t +(defvar +format-on-save-enabled-modes '(not emacs-lisp-mode) "A list of major modes in which to enable `format-all-mode'. This mode will auto-format buffers when you save them.