mirror of
https://github.com/golang/go
synced 2024-11-22 02:24:41 -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:
parent
770f3538c0
commit
6e6125ffa4
@ -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)
|
(add-hook 'after-change-functions #'go-mode-delayed-electric-hook nil t)
|
||||||
|
|
||||||
;; Comments
|
;; Comments
|
||||||
(setq comment-start "// "
|
(set (make-local-variable 'comment-start) "// ")
|
||||||
comment-end "")
|
(set (make-local-variable 'comment-end) "")
|
||||||
|
|
||||||
;; Go style
|
;; Go style
|
||||||
(setq indent-tabs-mode t))
|
(setq indent-tabs-mode t))
|
||||||
|
Loading…
Reference in New Issue
Block a user