emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Commenting out some JSX code section with Emacs 27 js-mode


From: Stephen Leake
Subject: Re: Commenting out some JSX code section with Emacs 27 js-mode
Date: Wed, 07 Oct 2020 03:42:02 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt)

Christian Jauvin <cjauvin@gmail.com> writes:

>>
>> (add-hook 'js-mode-hook
>>           (lambda ()
>>             (setq-local comment-start "{/* ")
>>             (setq-local comment-end   " */}")))
>>
>
> It now works for JSX, but breaks on regular JS code (inside the same .jsx
> file):

You need to change js-mode to use the ELPA package mmm-mode (multi-major-mode).


-- 
-- Stephe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]