unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* translating the Hyper modifier to C-c
@ 2005-05-24 13:15 David Wallin
  2005-05-24 16:03 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: David Wallin @ 2005-05-24 13:15 UTC (permalink / raw)


The subject pretty much says it all. I want to make the hyper modifier
mean C-c, e.g., pressing 'H-d' should be equivalent of/translated into
'C-c d'.


cheers,

--david.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: translating the Hyper modifier to C-c
  2005-05-24 13:15 translating the Hyper modifier to C-c David Wallin
@ 2005-05-24 16:03 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2005-05-24 16:03 UTC (permalink / raw)


David Wallin wrote:
 > The subject pretty much says it all. I want to make the hyper modifier
 > mean C-c, e.g., pressing 'H-d' should be equivalent of/translated into
 > 'C-c d'.

I think you need to explicitly bind each character:

;; Define each Hyper-modified printable ASCII character (space through 
tilde)
;; as a keyboard macro: Control-c followed by the character itself
(let ((char ? ))
   (while (<= char ?~)
     (global-set-key (vector (car (read-from-string (format "?\\H-%c" 
char))))
                     (format "\C-c%c" char))
     (setq char (1+ char))))

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-24 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-24 13:15 translating the Hyper modifier to C-c David Wallin
2005-05-24 16:03 ` Kevin Rodgers

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).