From 087388e21a7b8efb08bb5d5b0b27a1088a6fac55 Mon Sep 17 00:00:00 2001 From: Le Wang Date: Sun, 4 Mar 2012 12:33:53 +0800 Subject: [PATCH] add comment definition for snippet-mode --- yasnippet.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yasnippet.el b/yasnippet.el index 80f71cf..4d0817c 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -882,6 +882,8 @@ Do this unless `yas/dont-activate' is truish " (setq font-lock-defaults '(yas/font-lock-keywords)) (set (make-local-variable 'require-final-newline) nil) (use-local-map snippet-mode-map)) + (set (make-local-variable 'comment-start) "#") + (set (make-local-variable 'comment-start-skip) "#+[\t ]*"))