How can I configure/modify objc-mode
so that the face of comment-end
is the same face as comment-start
?
[The goal is to have commend-end
always use font-lock-comment-delimiter-face
, instead of font-lock-comment-face
. Perhaps whatever method c-mode
is using to achieve the desired behavior by default can be applied to objc-mode
as an answer to this question.]
STEP 1: Launch the latest GUI version of Emacs 25 with no user configuration; i.e., emacs -q
.
STEP 2: Open an Emacs source code file used to build Emacs such as nsterm.m
. The buffer will be in objc-mode
.
STEP 3: Place your cursor on a comment-start
and type C-u C-x =
and see that it has font-lock-comment-delimiter-face
.
STEP 4: Place your cursor on a comment-end
and type C-u C-x =
and see that it has font-lock-comment-face
.
If you repeat this same procedure in a c-mode
buffer, the commend-end
delimiter will have font-lock-comment-delimiter-face
.
comment-start|end
is a string - by itself it has no color - maybe clarify what you really mean, here.) – Drew Aug 19 '17 at 21:57