The title is pretty self explanatory.
I would like to change the comment colour from black to green in lua-mode.
I’ve tried putting this into .emacs
(set-face-foreground ‘font-lock-string-face “red”)
But it didn’t work. Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you put the cursor in the comment, and type M-x customize-face RET, it will offer to customize the correct face automatically (in this case
font-lock-comment-faceas Rupert mentioned). This gives you a nice way to play around with different changes to the face (to get exactly the right color etc.) and then save it to your.emacs. This is the easiest way to find out any face that you want to change.