summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-09-25 15:11:30 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-09-25 15:25:39 -0500
commitd44f7b44876030c09661f0ea63ec31248cbf9534 (patch)
treef72eb18360a0bcbf6af6ca13b9ae05f377c6aa1e /common
parent68d3a37fb6043ec52198701f5bb4ea36492bbb4c (diff)
downloaddotfiles-d44f7b44876030c09661f0ea63ec31248cbf9534.tar.gz
dotfiles-d44f7b44876030c09661f0ea63ec31248cbf9534.zip
Emacs/Gnus: Add command to run mbsync
Diffstat (limited to 'common')
-rw-r--r--common/.emacs.d/init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/.emacs.d/init.el b/common/.emacs.d/init.el
index 13b0b02..48a8d38 100644
--- a/common/.emacs.d/init.el
+++ b/common/.emacs.d/init.el
@@ -2010,6 +2010,13 @@ buffer's text scale."
'((gnus-killed-mark (subject -10))
(gnus-catchup-mark (subject -2))))
+ (defun my/mbsync (&optional arg)
+ (interactive "P")
+ (kill-buffer (get-buffer-create " *mbsync*"))
+ (call-process-shell-command "mbsync -a; mu index" nil " *mbsync*" arg))
+
+ (keymap-set gnus-group-mode-map "<f5>" 'my/mbsync)
+
(add-hooks 'gnus-group-mode-hook
'gnus-topic-mode)