summaryrefslogtreecommitdiffstats
path: root/lisp/bandali-ebdb.el
blob: a7315c4c49642fd2236c54c44419d1ec1d63bdff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
;;; bandali-ebdb.el --- bandali's EBDB configuration  -*- lexical-binding: t; -*-

;; Copyright (C) 2018-2020  Amin Bandali

;; Author: Amin Bandali <bandali@gnu.org>
;; Keywords: tools

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program.  If not, see <https://www.gnu.org/licenses/>.

;;; Commentary:

;; My EBDB setup.

;;; Code:

(use-package ebdb
  :demand
  :after gnus
  :bind (:map gnus-group-mode-map ("e" . ebdb))
  :config
  (setq ebdb-sources (b/var "ebdb"))
  (with-eval-after-load 'swiper
    (add-to-list 'swiper-font-lock-exclude 'ebdb-mode t)))

(use-package ebdb-com
  :after ebdb)

(use-package ebdb-complete
  :after ebdb
  :config
  ;; (setq ebdb-complete-mail 'capf)
  (ebdb-complete-enable))

(use-package ebdb-message
  :demand
  :after ebdb)

;; (use-package company-ebdb
;;   :config
;;   (defun company-ebdb--post-complete (_) nil))

(use-package ebdb-gnus
  :demand
  :after ebdb
  :custom
  (ebdb-gnus-window-size 0.3))

(use-package ebdb-mua
  :demand
  :after ebdb
  :custom (ebdb-mua-pop-up t))

;; (use-package ebdb-message
;;   :after ebdb)

;; (use-package ebdb-vcard
;;   :after ebdb)

(provide 'bandali-ebdb)
;;; bandali-ebdb.el ends here