* sound on emacs COCOA
@ 2010-11-23 11:59 Andrea Crotti
2010-11-23 15:07 ` Gary
0 siblings, 1 reply; 4+ messages in thread
From: Andrea Crotti @ 2010-11-23 11:59 UTC (permalink / raw)
To: help-gnu-emacs
I have the following version:
GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29) of
2010-05-09 on linc
I would like (just for fun) to have the typewriter sound when I type in
emacs, maybe even with the "carriage return" sound ;) This version
apparently doesn't support sound natively, so is there a nice way to
play sounds with emacs on OSX?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sound on emacs COCOA
[not found] <mailman.0.1290513577.18403.help-gnu-emacs@gnu.org>
@ 2010-11-23 14:15 ` Pascal J. Bourguignon
0 siblings, 0 replies; 4+ messages in thread
From: Pascal J. Bourguignon @ 2010-11-23 14:15 UTC (permalink / raw)
To: help-gnu-emacs
Andrea Crotti <andrea.crotti.0@gmail.com> writes:
> I have the following version:
>
> GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29) of
> 2010-05-09 on linc
>
> I would like (just for fun) to have the typewriter sound when I type in
> emacs, maybe even with the "carriage return" sound ;) This version
> apparently doesn't support sound natively, so is there a nice way to
> play sounds with emacs on OSX?
You could run an external program to play a sound. For example,
playsound, from macports. http://www.macport.org
(shell-command "/opt/local/bin/playsound /usr/local/share/sounds/key.wav")
Notice that advices on a subr such as self-insert-command are not called
when the subr is called from C code. So you'd have to use
pre-command-hook or post-command-hook.
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sound on emacs COCOA
2010-11-23 11:59 Andrea Crotti
@ 2010-11-23 15:07 ` Gary
2010-11-23 19:47 ` Andrea Crotti
0 siblings, 1 reply; 4+ messages in thread
From: Gary @ 2010-11-23 15:07 UTC (permalink / raw)
To: help-gnu-emacs
Andrea Crotti wrote:
> I would like (just for fun) to have the typewriter sound when I type in
> emacs, maybe even with the "carriage return" sound ;)
Your colleagues are going to hate you :)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sound on emacs COCOA
2010-11-23 15:07 ` Gary
@ 2010-11-23 19:47 ` Andrea Crotti
0 siblings, 0 replies; 4+ messages in thread
From: Andrea Crotti @ 2010-11-23 19:47 UTC (permalink / raw)
To: help-gnu-emacs
Gary <help-gnu-emacs@garydjones.name> writes:
> Andrea Crotti wrote:
>> I would like (just for fun) to have the typewriter sound when I type in
>> emacs, maybe even with the "carriage return" sound ;)
>
> Your colleagues are going to hate you :)
Well the keyboard in the lab is really good but also very noisy, that
extra sound will not be noticed ;)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-23 19:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.0.1290513577.18403.help-gnu-emacs@gnu.org>
2010-11-23 14:15 ` sound on emacs COCOA Pascal J. Bourguignon
2010-11-23 11:59 Andrea Crotti
2010-11-23 15:07 ` Gary
2010-11-23 19:47 ` Andrea Crotti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).