summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-04-02 09:04:03 +0200
committerAlan Pearce2023-04-02 09:04:03 +0200
commitfdeb28c62767379ac51d0227451d76766a30ca92 (patch)
tree325cc7ee8c0096c2e3728d9f271ba4b7bc604d57 /user/emacs
parent2264ae0becd3f21c469ad2c801af074810de6540 (diff)
downloadnixfiles-fdeb28c62767379ac51d0227451d76766a30ca92.tar.lz
nixfiles-fdeb28c62767379ac51d0227451d76766a30ca92.tar.zst
nixfiles-fdeb28c62767379ac51d0227451d76766a30ca92.zip
emacs: never ring bell
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index f673b38c..c5d192c3 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -40,12 +40,8 @@
 
 (setq-default truncate-lines t)
 
-;; Ring the bell sometimes, but not so often
-(setq ring-bell-function
-      (lambda ()
-        (unless (memq this-command
-                      '(isearch-abort abort-recursive-edit exit-minibuffer keyboard-quit minibuffer-keyboard-quit undo-tree-undo))
-          (ding))))
+;; Don't ring the bell
+(setq ring-bell-function #'ignore)
 
 (when (or (daemonp)
           window-system)