|
From: | Deniz Dogan |
Subject: | Re: Commenting Multiple Lines |
Date: | Mon, 19 Sep 2011 06:45:18 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 |
On 2011-09-19 05:38, Nachiappan A wrote:
Hi All, Thanks for the reply. M-; works for me. It does both the job of commenting and un-commenting. @Drew Adams : When i did 'C-h k' and tried 'C-c C-c' below was the description "runs the command comment-region, which is an interactive compiled Lisp function." Just trying to understanding, both C-c C-c and M-; does the job of commenting, what is the basic difference ?
C-c C-c is not a universal binding for commenting. M-; is. C-c C-c is most likely bound by some major mode you are using. Try it in e.g. lisp-mode and you will see that it does not do commenting there.
Where can i find all such emacs shortcuts related to programming ?
This also depends on the modes you are using. You can use e.g. C-h b to see all bindings currently active (usually a pretty long list), or you can use C-h m to see a description of all modes you are currently using, which narrows the list of bindings for each mode down.
[Prev in Thread] | Current Thread | [Next in Thread] |