Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I comment out sexps in elisp code?

Tags:

emacs

elisp

What is the preferred way to comment out sexps in elisp code? I have been wrapping my sexps in (if nil ...) so far.

like image 374
sigjuice Avatar asked Nov 17 '10 02:11

sigjuice


1 Answers

C-M-@ M-; comments current sexp.

C-M-@ stays for mark-sexp and M-; knows how to correctly comment out a region, taking the current mode into account. Commands to mark objects are described here.

like image 76
eGlyph Avatar answered Oct 26 '22 08:10

eGlyph