Browse Source

Sync contacts after editing with khardel

master
Nicolas Petton 2 years ago
parent
commit
f23c38cc08
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      hosts/blueberry/init.el

+ 7
- 1
hosts/blueberry/init.el View File

@ -7,7 +7,13 @@
(use-package khardel
:bind (:map message-mode-map
("C-c TAB" . khardel-insert-email)))
("C-c TAB" . khardel-insert-email))
:config (progn
(defun my-vdirsyncer-sync ()
(message "Syncing contacts...")
(shell-command "vdirsyncer sync"))
(add-hook 'khardel-edit-finished-hook #'my-vdirsyncer-sync)
(add-hook 'khardel-edit-finished-hook #'khardel-flush-caches)))
(use-package epg
:demand t


Loading…
Cancel
Save