Emacs – Simple comment syntax

by

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

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: