branch: elpa/jade-mode
commit 05d671fcdbdbac86a9e5113184cf136950a0e773
Author: Andrew Butcher <[email protected]>
Commit: Andrew Butcher <[email protected]>

    Add comment syntax to allow for M-x (un)comment-region.
---
 jade-mode.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/jade-mode.el b/jade-mode.el
index f71c333d53..bfa9db4b6b 100644
--- a/jade-mode.el
+++ b/jade-mode.el
@@ -86,6 +86,9 @@ For detail, see `comment-dwim'."
   (setq mode-name "Jade")
   (setq major-mode 'jade-mode)
 
+  ;; comment syntax
+  (set (make-local-variable 'comment-start) "// ")
+
   ;; default tab width
   (setq sws-tab-width 2)
   (make-local-variable 'indent-line-function)

Reply via email to