Microblog Posts

TIL about the which-function-mode in Emacs. It is a global minor mode that displays the current function in the mode line when enabled.

I use the org-pomodoro package for focused sessions at work. But Slack notifications can easily break my flow, so I added the simple hooks to disable visible notifications on GNOME desktop.

(defun arg-disable-gnome-notifications ()
  (shell-command "gsettings set org.gnome.desktop.notifications show-banners false"))
(defun arg-enable-gnome-notifications () (shell-command "gsettings set org.gnome.desktop.notifications show-banners true"))

(add-hook 'org-pomodoro-started-hook #'arg-disable-gnome-notifications)
(add-hook 'org-pomodoro-finished-hook #'arg-enable-gnome-notifications)
(add-hook 'org-pomodoro-break-finished-hook #'arg-enable-gnome-notifications)
(add-hook 'org-pomodoro-killed-hook #'arg-enable-gnome-notifications)

I'm learning about lambda calculus, the mathematical foundation of Lisp. It defines an incredibly expressive system. The Church encodings finally clicked for me.

TIL that in Magit buffers, pressing \ (or M-x evil-collection-magit-toggle-text-mode) activates text-mode. This mode enables standard visual motions that are unavailable in Magit buffers.