* can't turn off bell
@ 2005-08-12 11:41 Paminu
2005-08-12 14:30 ` Joe Corneli
0 siblings, 1 reply; 2+ messages in thread
From: Paminu @ 2005-08-12 11:41 UTC (permalink / raw)
I have this in my .emacs file:
(setq ring-bell-function #'(lambda))
But the bell is active anyway.
I tried to comment it and restart emacs and uncomment it and restart again
and then the bell is gone but starts after some time again...wierd
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: can't turn off bell
2005-08-12 11:41 can't turn off bell Paminu
@ 2005-08-12 14:30 ` Joe Corneli
0 siblings, 0 replies; 2+ messages in thread
From: Joe Corneli @ 2005-08-12 14:30 UTC (permalink / raw)
I have this in my .emacs file:
(setq ring-bell-function #'(lambda))
But the bell is active anyway.
I think you meant~ to write
(setq ring-bell-function (lambda ()))
(ding)
or maybe you prefer (this is what I have in my .emacs)
(setq ring-bell-function nil)
(setq visible-bell t)
(ding)
~: `lambda' is self-quoting, which is why `(lambda)' "works",
but it requires an arglist if you want to build a function;
if the function accepts no arguments, the arglist is `nil'.
C-h f lambda RET.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-12 14:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-12 11:41 can't turn off bell Paminu
2005-08-12 14:30 ` Joe Corneli
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.