all repos — nixfiles @ fdeb28c62767379ac51d0227451d76766a30ca92

System and user configuration, managed by nix and home-manager

emacs: never ring bell
Alan Pearce alan@alanpearce.eu
Sun, 02 Apr 2023 09:04:03 +0200
commit

fdeb28c62767379ac51d0227451d76766a30ca92

parent

2264ae0becd3f21c469ad2c801af074810de6540

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

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -40,12 +40,8 @@ (blink-cursor-mode -1) 
 (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)