This one is personal preference, but I find it annoying when emacs beeps on errors. I like knowing when something bad/unexpected happened, but the beep is too much when the sound is on and useless when muted. Add this to your .emacs to enable a visual alert cue that flashes the frame instead:
(setq visible-bell t)
Note: From what I can tell, this only works under a windowing system, so it won’t do much good if you run emacs in terminal mode.
3 responses so far ↓
For reasons I still haven’t figured out, my X server locks up when emacs beeps, so it’s vital that emacs really doesn’t ever beep. Setting visible-bell doesn’t work well enough — it seems to get turned off under some circumstances (I haven’t figured that out yet, either).
So, I’ve been using:
that isn’t great, since I can miss beeps, but it works reliably. It would be nice if the visible-bell functionality were exposed more directly, but as far as I can tell it’s not, and I haven’t come up with an elisp version I’m happy with.
For a visible bell in terminal mode, you can run emacs under screen, and tell screen to make the normal bell visible; this works for all your terminal programs, not just emacs.
Some alerts are useful in any case. You are not obliged to disable all of them.
Leave a Comment