all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

* 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 ` Uncomment keybinding 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 ` Uncomment keybinding 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 --
     [not found] <mailman.321.1042659185.21513.help-gnu-emacs@gnu.org>
2003-01-15 19:44 ` Uncomment keybinding Edward O'Connor
2003-01-15 20:16 ` Jon Kåre Hellan
2003-01-16  0:17 ` Stefan Monnier <foo@acm.com>
2003-01-15 18:55 Kevin Breit

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.