Customise more variables for comment highlighting.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 20 Dec 2011 21:45:23 +0200
changeset 847 d38ced086516
parent 846 357f5c6bb23d
child 848 8125f4d8b6d4
Customise more variables for comment highlighting.
nsis-mode.el
--- a/nsis-mode.el	Tue Dec 20 21:12:34 2011 +0200
+++ b/nsis-mode.el	Tue Dec 20 21:45:23 2011 +0200
@@ -23,8 +23,12 @@
   )
 
 (defun nsis-mode-set-comment-style ()
-  (setq comment-start "; ")
-  (setq comment-end "")
+  (set (make-local-variable 'comment-start) "; ")
+  (set (make-local-variable 'comment-continue) nil)
+  (set (make-local-variable 'comment-end) "")
+  (set (make-local-variable 'comment-end-skip) nil)
+  (set (make-local-variable 'comment-multi-line) nil)
+  (set (make-local-variable 'comment-use-syntax) t)
   )
 
 ;;;###autoload