* Uncomment keybinding @ 2003-01-15 18:55 Kevin Breit 0 siblings, 0 replies; 4+ messages in thread From: Kevin Breit @ 2003-01-15 18:55 UTC (permalink / raw) Hey, How do I setup a keybinding in emacs 21.2 to uncomment a selection? Thanks! -- Kevin Breit <mrproper@ximian.com> ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.321.1042659185.21513.help-gnu-emacs@gnu.org>]
* Re: Uncomment keybinding [not found] <mailman.321.1042659185.21513.help-gnu-emacs@gnu.org> @ 2003-01-15 19:44 ` Edward O'Connor 2003-01-15 20:16 ` Jon Kåre Hellan 2003-01-16 0:17 ` Stefan Monnier <foo@acm.com> 2 siblings, 0 replies; 4+ messages in thread From: Edward O'Connor @ 2003-01-15 19:44 UTC (permalink / raw) > How do I setup a keybinding in emacs 21.2 to uncomment a > selection? Why not read the manual? C-h i m emacs RET i comment RET Ted -- Edward O'Connor oconnor@soe.ucsd.edu ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Uncomment keybinding [not found] <mailman.321.1042659185.21513.help-gnu-emacs@gnu.org> 2003-01-15 19:44 ` Edward O'Connor @ 2003-01-15 20:16 ` Jon Kåre Hellan 2003-01-16 0:17 ` Stefan Monnier <foo@acm.com> 2 siblings, 0 replies; 4+ messages in thread From: Jon Kåre Hellan @ 2003-01-15 20:16 UTC (permalink / raw) Kevin Breit <mrproper@ximian.com> writes: > Hey, > How do I setup a keybinding in emacs 21.2 to uncomment a selection? > > Thanks! E.g. (global-set-key [(control ?c) ?c ] 'comment-region) This binds Ctl-c c to the command 'comment-region'. Ctl-u Ctl-c c will uncomment. Good luck JK ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Uncomment keybinding [not found] <mailman.321.1042659185.21513.help-gnu-emacs@gnu.org> 2003-01-15 19:44 ` Edward O'Connor 2003-01-15 20:16 ` Jon Kåre Hellan @ 2003-01-16 0:17 ` Stefan Monnier <foo@acm.com> 2 siblings, 0 replies; 4+ messages in thread From: Stefan Monnier <foo@acm.com> @ 2003-01-16 0:17 UTC (permalink / raw) >>>>> "Kevin" == Kevin Breit <mrproper@ximian.com> writes: > How do I setup a keybinding in emacs 21.2 to uncomment a selection? Just like any other keybinding: (global-set-key [my C-key] 'uncomment-region) but note that M-; should do it for you if the region is fully commented out and if you're using transient-mark-mode. Stefan ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-16 0:17 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-01-15 18:55 Uncomment keybinding Kevin Breit [not found] <mailman.321.1042659185.21513.help-gnu-emacs@gnu.org> 2003-01-15 19:44 ` Edward O'Connor 2003-01-15 20:16 ` Jon Kåre Hellan 2003-01-16 0:17 ` Stefan Monnier <foo@acm.com>
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).