1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:14:52 -07:00

Make comment-start/-end changes buffer-local instead of global.

Fixes #290.

R=rsc
https://golang.org/cl/160070
This commit is contained in:
Austin Clements 2009-11-29 14:22:07 -08:00 committed by Russ Cox
parent 770f3538c0
commit 6e6125ffa4

View File

@ -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))