* output-supression
@ 2005-02-15 6:07 Charles Harrison Caudill
2005-02-15 18:42 ` output-supression Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: Charles Harrison Caudill @ 2005-02-15 6:07 UTC (permalink / raw)
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?
Thanks guys
Oh, and just for fun: I've managed to convert my roommate (Vim user of many
years) to emacs as of today.
Go emacs!
--
Harrison Caudill | .^ www.hypersphere.org
Computer Science & Physics Double Major | | Me*Me=1
Georgia Institute of Technology | v' I'm just a normal guy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: output-supression
2005-02-15 6:07 output-supression Charles Harrison Caudill
@ 2005-02-15 18:42 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2005-02-15 18:42 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-15 18:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-15 6:07 output-supression Charles Harrison Caudill
2005-02-15 18:42 ` output-supression Kevin Rodgers
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.