[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get current keymap
From: |
Xah Lee |
Subject: |
Re: How to get current keymap |
Date: |
Sat, 6 Dec 2008 10:24:45 -0800 (PST) |
User-agent: |
G2/1.0 |
On Dec 6, 6:37 am, netawater <netstandin-...@yahoo.com.cn> wrote:
> 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!.
there are these:
current-active-maps
Function: Return a list of the currently active keymaps.
current-global-map
Function: Return the current global keymap.
current-local-map
Function: Return current buffer's local keymap, or nil if it has
none.
current-minor-mode-maps
Function: Return a list of keymaps for the minor modes of the
current buffer.
these are gotten by “Ctrl+u Ctrl+h a -maps”. In short, give a empty
arg to apropos-command then look for function names ending in “-maps”.
Xah
∑ http://xahlee.org/
☄