summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-06-04 16:42:02 +0100
committerAlan Pearce2014-06-04 16:42:02 +0100
commitd8002787cc9d6862b5c3700a60e1f5181d775208 (patch)
tree07bd881cd47016b003db5e0b7c3ddc3e319fded5 /tag-emacs
parent54140d630b30b65ec656ddc848ce56dd87f64ad8 (diff)
downloaddotfiles-d8002787cc9d6862b5c3700a60e1f5181d775208.tar.lz
dotfiles-d8002787cc9d6862b5c3700a60e1f5181d775208.tar.zst
dotfiles-d8002787cc9d6862b5c3700a60e1f5181d775208.zip
Emacs: ring the bell a bit less often
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index cd798bf..b4b5a92 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-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))