From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get current keymap
Date: Sat, 6 Dec 2008 10:24:45 -0800 (PST) [thread overview]
Message-ID: <f28b05e9-8e20-4c24-b286-efeb27253ecf@p2g2000prn.googlegroups.com> (raw)
In-Reply-To: 878wqtcqt6.fsf@emacs.Arch.net
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/
☄
next prev parent reply other threads:[~2008-12-06 18:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-06 14:37 How to get current keymap netawater
2008-12-06 18:24 ` Xah Lee [this message]
2008-12-06 21:37 ` Rupert Swarbrick
2008-12-07 5:28 ` netawater
2008-12-07 6:35 ` Drew Adams
2008-12-07 6:49 ` Drew Adams
2008-12-07 15:09 ` Kevin Rodgers
2008-12-07 17:33 ` Drew Adams
[not found] ` <mailman.2157.1228671183.26697.help-gnu-emacs@gnu.org>
2008-12-08 14:39 ` netawater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f28b05e9-8e20-4c24-b286-efeb27253ecf@p2g2000prn.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.