If you are editing a type of file that has a simple comment syntax (e.g., lines that start with # are considered comments), you can let emacs know about it and get ride of the “No comment syntax is defined” error message when you try to comment a block of text.
Here is what you have to do (we asume that lines that start with # are considered comments):
M-x conf-unix-mode RET
M-: (setq comment-start “#”) RET
Leave a Reply