From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: output-supression
Date: Tue, 15 Feb 2005 11:42:12 -0700 [thread overview]
Message-ID: <37eu46F5bkmjjU1@individual.net> (raw)
In-Reply-To: <cus3jp$136$1@solaria.cc.gatech.edu>
Charles Harrison Caudill wrote:
> Hey, I'm looking for a way to do the following:
>
> (add-hook 'mmm-mode-hook
> (local-set-key "\C-\M-p" 'mmm-parse-buffer))
>
> which 'works', the problem is that the output of the function is being
> inserted into the main buffer instead of the echo area.
>
> If I run:
>
> M-x local-set-key: C-M-p to: mmm-parse-buffer it works just fine
>
> how should the mode-hook be set up?
You want to defer evaluation of the (local-set-key ...) form, so quote
it with lambda to create a proper function object acceptable to add-hook:
(add-hook 'mmm-mode-hook
(lambda ()
(local-set-key "\C-\M-p" 'mmm-parse-buffer)))
> Thanks guys
You're welcome.
> Oh, and just for fun: I've managed to convert my roommate (Vim user of many
> years) to emacs as of today.
>
> Go emacs!
Bless you brother, another soul saved!
--
Kevin Rodgers
prev parent reply other threads:[~2005-02-15 18:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-15 6:07 output-supression Charles Harrison Caudill
2005-02-15 18:42 ` Kevin Rodgers [this message]
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=37eu46F5bkmjjU1@individual.net \
--to=ihs_4664@yahoo.com \
/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.