]> Cypherpunks repositories - gostls13.git/commitdiff
Make comment-start/-end changes buffer-local instead of global.
authorAustin Clements <aclements@csail.mit.edu>
Sun, 29 Nov 2009 22:22:07 +0000 (14:22 -0800)
committerRuss Cox <rsc@golang.org>
Sun, 29 Nov 2009 22:22:07 +0000 (14:22 -0800)
Fixes #290.

R=rsc
https://golang.org/cl/160070

misc/emacs/go-mode.el

index 50a1c5c154e3523ab454527fe0f41d5c618fa1f8..88198e3c4d45ce3da5a5be107deff5b3158abb18 100644 (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))