XEmacsNull Blog

Bi-Day XEmacs Tip Blog

Thursday, December 08, 2005

Tip: Tougher Key Bindings

Question: What if, I want to bind to Ctrl-c, b, 3? . . .

Answer: Well, again, using the (kbd function comes to our rescue. Only, this way we'll put it into a different place.

(global-set-key  (kbd "C-c b 3") " a sample ") # one
(global-set-key (kbd "C-c b 3") 'your-own-elisp-function) # two

= If you try the other way. There doesn't seem to be an easy way, to connect with a long shortcut sequence to an action.

Platform: Linux
Level: Amateur
GlR

0 Comments:

Post a Comment

<< Home