I wonder how could I disable this annoying square which seems like it's zooming in the text under the emacs' cursor.
How can I get rid of it? And what is this exactly?
I am on emacs 24.5 (homebrew installed) and MacOS X El Capitán.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
As noted in scaevola's answer, the problem is
visible-bell. Completely turning off both audible and visible bell may seem a bit drastic, though. Here's a homebrew version of visible bell that just flashes the mode-line – but excluding some cases where the user deliberately caused the condition triggering the bell:
(setq ring-bell-function (lambda () (unless (memq this-command '(isearch-abort abort-recursive-edit exit-minibuffer keyboard-quit)) (invert-face 'mode-line) (run-with-timer 0.1 nil 'invert-face 'mode-line))))
Adjust the delay 0.1 (seconds) to taste.