From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: sound on emacs COCOA
Date: Tue, 23 Nov 2010 15:15:35 +0100 [thread overview]
Message-ID: <87sjysw2go.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.0.1290513577.18403.help-gnu-emacs@gnu.org
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 {}.
next parent reply other threads:[~2010-11-23 14:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.0.1290513577.18403.help-gnu-emacs@gnu.org>
2010-11-23 14:15 ` Pascal J. Bourguignon [this message]
2010-11-23 11:59 sound on emacs COCOA Andrea Crotti
2010-11-23 15:07 ` Gary
2010-11-23 19:47 ` Andrea Crotti
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=87sjysw2go.fsf@kuiper.lan.informatimago.com \
--to=pjb@informatimago.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.