all repos — nixfiles @ fdeb28c62767379ac51d0227451d76766a30ca92

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

emacs: never ring bell

Alan Pearce
commit

fdeb28c62767379ac51d0227451d76766a30ca92

parent

2264ae0becd3f21c469ad2c801af074810de6540

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

changed files
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)