[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't turn off bell

From: Joe Corneli
Subject: Re: can't turn off bell
Date: Fri, 12 Aug 2005 09:30:32 -0500

   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 ()))


or maybe you prefer (this is what I have in my .emacs)

 (setq ring-bell-function nil)
 (setq visible-bell t)


~:  `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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]