summaryrefslogtreecommitdiff
path: root/common/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to 'common/.emacs.d')
-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)