all repos — archive/dotfiles @ d8002787cc9d6862b5c3700a60e1f5181d775208

Superseded by nixfiles

Emacs: ring the bell a bit less often
Alan Pearce alan@alanpearce.co.uk
Wed, 04 Jun 2014 16:42:02 +0100
commit

d8002787cc9d6862b5c3700a60e1f5181d775208

parent

54140d630b30b65ec656ddc848ce56dd87f64ad8

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -79,6 +79,12 @@ (when (fboundp #'blink-cursor-mode)
   (blink-cursor-mode -1))
 
+(setq ring-bell-function
+      (lambda ()
+        (unless (memq this-command
+                      '(isearch-abort abort-recursive-edit exit-minibuffer keyboard-quit undo-tree-undo))
+          (ding))))
+
 (req-package solarized-theme
   :config (load-theme 'solarized-light t))