You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another improper option is if one writes their own very short command that ad-hoc let-binds comment-end and comment-start and calls #'comment-region inside that. But then they would need to, AFAICT, hardcode the "/*" and "*/" strings there, which is not ideal since this information should already be known to and provided by nix-mode. E.g., c-mode provides the c-block-comment-starter and c-block-comment-ender variables.
To clarify, in comparison Intellij provides two independent commands:
AFAICT it is not properly available through trivial combination of any existing command and customizeable variable.
One improper option is if one customizes
comment-end
andcomment-start
, but then they lose line comments (see https://emacs.stackexchange.com/questions/39291/c-mode-smartly-use-for-comment-dwim#:~:text=The%20reason%20that,syntax%20instead%20of%20%22//%22).Another improper option is if one writes their own very short command that ad-hoc
let
-bindscomment-end
andcomment-start
and calls#'comment-region
inside that. But then they would need to, AFAICT, hardcode the"/*"
and"*/"
strings there, which is not ideal since this information should already be known to and provided bynix-mode
. E.g.,c-mode
provides thec-block-comment-starter
andc-block-comment-ender
variables.To clarify, in comparison Intellij provides two independent commands:
and
The text was updated successfully, but these errors were encountered: