3 comments

  1. I’ve used my own visible bell for years. Others might like it too:

    ;; The visible bell is usually fine, but still horrid in certain terminals.
    ;; We can make a nicer version.
    (defun my-visible-bell ()
    “A friendlier visual bell effect.”
    (invert-face ‘mode-line)
    (run-with-timer 0.1 nil #’invert-face ‘mode-line))

    (define-minor-mode my-visible-bell-mode
    “Use `my-visible-bell’ as the `ring-bell-function’.”
    :global t
    (let ((this ‘my-visible-bell-mode))
    (if my-visible-bell-mode
    (progn
    (put this ‘visible-bell-backup visible-bell)
    (put this ‘ring-bell-function-backup ring-bell-function)
    (setq visible-bell nil
    ring-bell-function #’my-visible-bell))
    ;; Restore the original values when disabling.
    (setq visible-bell (get this ‘visible-bell-backup)
    ring-bell-function (get this ‘ring-bell-function-backup)))))

    (setq visible-bell t)
    (my-visible-bell-mode 1)

    Like

  2. A random question – I like how your code blocks are shown on this website: their appearance. Do you write your posts in Org mode? Do you know of a way to make code blocks exported to Latex/PDF, so that they are also in a coloured box like yours are on this website?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s