Governance by those who do the work.

Wednesday, February 15, 2012

Emacs bell in GNU/Linux

The bell in the Emacs text editor hasn't worked in the Fedora and Ubuntu distributions for years.  On February 2, Bug 562719 - Bell does not work in emacs in RedHat Bugzilla noted that this was not fixed in yet another release of Fedora.
But today, Peter Oliver posted a solution:

As a workaround, put the following in your .emacs:

(setq ring-bell-function 
      (lambda () (start-process "canberra-gtk-play" "*canberra-gtk-play*"
    "canberra-gtk-play" "--id" "bell")))
This solution also works for Ubuntu-10.10.

No comments: