[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get current keymap
From: |
netawater |
Subject: |
Re: How to get current keymap |
Date: |
Sun, 07 Dec 2008 13:28:34 +0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Rupert Swarbrick <rswarbrick@gmail.com> writes:
> netawater <netstandin-003@yahoo.com.cn> writes:
>
>> I used (concat (symbol-name major-mode) "-map") to get current keymap,
>> but it failed for LaTeX mode. Are there other methode to get current
>> keymap. Thank you very much!.
>
> Maybe (current-active-maps) does what you need? See
>
> (info "(elisp) Active Keymaps")
>
>
> Rupert
Thank you both.
I'm very sorry my description is not accurate, :(.
I want to get current mode's keymap, some modes do not have keymap, but current
keymap always exists. I need define a key for my function in it and my function
can be always active for that mode.
Thank you very much for replying.