From 6e6125ffa413fea7e55e159e4fd131ec054de0c7 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Sun, 29 Nov 2009 14:22:07 -0800 Subject: [PATCH] Make comment-start/-end changes buffer-local instead of global. Fixes #290. R=rsc https://golang.org/cl/160070 --- misc/emacs/go-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index 50a1c5c154..88198e3c4d 100644 --- a/misc/emacs/go-mode.el +++ b/misc/emacs/go-mode.el @@ -462,8 +462,8 @@ functions, and some types. It also provides indentation that is (add-hook 'after-change-functions #'go-mode-delayed-electric-hook nil t) ;; Comments - (setq comment-start "// " - comment-end "") + (set (make-local-variable 'comment-start) "// ") + (set (make-local-variable 'comment-end) "") ;; Go style (setq indent-tabs-mode t)) -- 2.50.0