help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Enabling and disabling my own keymap


From: TheLonelyStar
Subject: Enabling and disabling my own keymap
Date: Thu, 22 May 2008 03:18:12 -0700 (PDT)

Hi,

I feel like I posted this question a few days ago... but I can not find it
in the forum. I hope I am not double posting.

I want to create a keymap, set some keys in it and enable/disable it "on the
fly".
I tried:
(setq my-keymap (make-sparse-keymap))
(defvar my-keymap-enabled)
(setq minor-mode-map-alist (cons '(my-keymap-enabled . my-keymap)
minor-mode-map-alist))
(setq my-keymap-enabled t)

But when I set a key using
(define-key my-keymap (kbd "{") 'curly-bracket)

The { key is not bound to "curly-bracket".
What am I doing wrong?

Thanks!
Nathan
-- 
View this message in context: 
http://www.nabble.com/Enabling-and-disabling-my-own-keymap-tp17401325p17401325.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]