Fix doom/newline-and-indent for rjsx-mode
This commit is contained in:
parent
c472b2360e
commit
a5437a3860
1 changed files with 2 additions and 2 deletions
|
@ -155,8 +155,8 @@ from a commented line."
|
||||||
(cond ((sp-point-in-string)
|
(cond ((sp-point-in-string)
|
||||||
(newline))
|
(newline))
|
||||||
((sp-point-in-comment)
|
((sp-point-in-comment)
|
||||||
(cond ((eq major-mode 'js2-mode)
|
(cond ((memq major-mode '(js2-mode rjsx-mode))
|
||||||
(js2-line-break))
|
(call-interactively 'js2-line-break))
|
||||||
((memq major-mode '(java-mode php-mode))
|
((memq major-mode '(java-mode php-mode))
|
||||||
(c-indent-new-comment-line))
|
(c-indent-new-comment-line))
|
||||||
((memq major-mode '(c-mode c++-mode objc-mode css-mode scss-mode js2-mode))
|
((memq major-mode '(c-mode c++-mode objc-mode css-mode scss-mode js2-mode))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue