0
votes
0answers
10 views

How can I trick nxml-mode into accepting <<…>> as comment syntax?

I'm using org-babel to create an XSL template and would like to use the tangling capabilities. Since as far as I'm aware <<…>> isn't valid XML anyway, I would like to add it as comment ...
1
vote
1answer
209 views

How to enter C-style comments in cc-mode?

I'd prefer to use C-style comments in C++ sources: class Dog { string name; /* The dog's name */ ... void bark(); /* Print messages in Dog's ...
1
vote
3answers
88 views

Auto comment matching braces in emacs

I am trying to find an emacs command that will auto comment the code similar to this: Before command if(condition){ do ... } After command if(condition){ do ... } //Matches ...
1
vote
1answer
103 views

How to write a fixed comment in an emacs buffer, respecting the mode?

I want to write a little function to enter a fixed comment string such as the following on a new line, respecting the mode, e.g. in elisp I would like it to write ;; this is a comment on the next ...