summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-25 23:00:04 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-25 23:00:04 +0100
commit4acd45b24dba15d0988e60cb6243b432da7022ea (patch)
treec0915afb2915f8b5ed4310fa787fb4f025be7d69
parenta50511be176d7008358a26fb1f539a76b983f881 (diff)
Set ‘require-final-newline’ for ‘go-ts-mode’
This stops Emacs from removing the final newline that is otherwise added by ‘gofmt’.
-rw-r--r--.dir-locals.el3
1 files changed, 2 insertions, 1 deletions
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