diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-09-25 15:11:30 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-09-25 15:25:39 -0500 |
commit | d44f7b44876030c09661f0ea63ec31248cbf9534 (patch) | |
tree | f72eb18360a0bcbf6af6ca13b9ae05f377c6aa1e /common/.emacs.d/init.el | |
parent | 68d3a37fb6043ec52198701f5bb4ea36492bbb4c (diff) | |
download | dotfiles-d44f7b44876030c09661f0ea63ec31248cbf9534.tar.gz dotfiles-d44f7b44876030c09661f0ea63ec31248cbf9534.zip |
Emacs/Gnus: Add command to run mbsync
Diffstat (limited to 'common/.emacs.d/init.el')
-rw-r--r-- | common/.emacs.d/init.el | 7 |
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) |