Posts for: emacs

My Emacs Presentation Stack

When I need to do presentations at work, I naturally reach for Emacs. My presentations include diagrams, code snippets and running small shell blocks. I found that Org Mode with Babel is the perfect fit. In this post, I'll describe my presentation stack based on Org mode.

read more →

1763127234

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)
        
read more →

1759417306

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.

read more →

Implement Custom Tramp Method in Emacs

Emacs supports editing remote files using the Tramp package. Emacs transparently handles the remote files based on the special path prefixes specified, so the experience is similar to operating on a local file. Tramp uses a remote shell underneath to access remote files. In this article, I'll talk about how to extend Tramp to support custom Methods to access remote files.

read more →