emacs: never ring bell
Alan Pearce alan@alanpearce.eu
Sun, 02 Apr 2023 09:04:03 +0200
1 files changed, 2 insertions(+), 6 deletions(-)
jump to
M user/emacs/init.el → user/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)