Open lumenwrites opened 6 years ago
This should work pretty well (stolen from css-mode)
(add-hook 'js2-mode-hook
(lambda ()
(setq-local comment-start "/*")
(setq-local comment-start-skip "/\\*+[ \t]*")
(setq-local comment-end "*/")
(setq-local comment-end-skip "[ \t]*\\*+/")))
Hi! I'm new to this mode, can you help me to figure out how to tell emacs to comment stuff like this
/* ...*/
when I pressM-;
? All my comments are using this format, and without this feature it becomes very difficult to adjust.