From 4acd45b24dba15d0988e60cb6243b432da7022ea Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 25 Nov 2024 23:00:04 +0100 Subject: Set ‘require-final-newline’ for ‘go-ts-mode’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This stops Emacs from removing the final newline that is otherwise added by ‘gofmt’. --- .dir-locals.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.dir-locals.el b/.dir-locals.el index 71f9481..0309516 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -4,4 +4,5 @@ (expand-file-name "contrib/emacs" (locate-dominating-file default-directory "contrib/emacs"))) - (require 'mintage-mode)))))) + (require 'mintage-mode))))) + (go-ts-mode . ((require-final-newline . t)))) \ No newline at end of file -- cgit v1.2.3