|
|
|
|
|
by ddevault
1350 days ago
|
|
aerc is plugged into your surrounding Unix environment more deeply than most mail clients. It has a keybindings system which is like a more generalized version of Vim, plus an embedded terminal emulator and support for piping things through shell commands, and a templating system. Example: to apply git patches, I have this in ~/.config/aerc/binds.conf: ga = :flag<Enter>:pipe -mb git am -3<Enter>
To reply to thank the contributor, I have this: rt = :unflag<Enter>:reply -a -Tthanks<Enter>
The "thanks" template invoked by this shells out to git to include a summary of the git push and set a special mail header to update the mailing list on the status of the patch: X-Sourcehut-Patchset-Update: APPLIED
Thanks!
{{exec "{ git remote get-url --push origin; git reflog -2 origin/master --pretty=format:%h | xargs printf '%s\n' | tac; } | xargs printf 'To %s\n %s..%s master -> master'" ""}}
Hope that helps. |
|
I like this because I could do the script parts in whatever language I like.
I've been trying to cobble together a linux dev system that's almost entirely configured in lisp.
Getting pretty close now, in theory, with Guix for a distro(Guile initscripts and system def), Stumpwm(Common Lisp), Nyxt-browser(also CL), and of course Emacs with evil-mode for editing/org-mode.
I realise I could Emacs all the things, but I have too much of a love-hate relationship with Emacs for that to be bearable...