[emacs] manually add bbdb into lisp/bbdb/
[~bandali/configs] / lisp / bbdb / bbdb-mu4e.el
... / ...
CommitLineData
1;;; bbdb-mu4e.el --- BBDB interface to mu4e -*- lexical-binding: t -*-
2
3;; Copyright (C) 2015-2017 Free Software Foundation, Inc.
4
5;; This file is part of the Insidious Big Brother Database (aka BBDB),
6
7;; BBDB is free software: you can redistribute it and/or modify
8;; it under the terms of the GNU General Public License as published by
9;; the Free Software Foundation, either version 3 of the License, or
10;; (at your option) any later version.
11
12;; BBDB is distributed in the hope that it will be useful,
13;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;; GNU General Public License for more details.
16
17;; You should have received a copy of the GNU General Public License
18;; along with BBDB. If not, see <http://www.gnu.org/licenses/>.
19
20;;; Commentary:
21;; This file contains the BBDB interface to mu4e.
22;; See the BBDB info manual for documentation.
23
24;;; Code:
25
26(require 'bbdb)
27(if t (require 'mu4e-view))
28
29(defvar mu4e-view-mode-map)
30
31;;;###autoload
32(defun bbdb-insinuate-mu4e ()
33 "Hook BBDB into mu4e.
34Do not call this in your init file. Use `bbdb-initialize'."
35 ;; Tackle headers later
36 ;; (define-key mu4e-headers-mode-map ":" 'bbdb-mua-display-sender)
37 ;; (define-key mu4e-headers-mode-map ";" 'bbdb-mua-edit-field-sender)
38 ;; Do we need keybindings for more commands? Suggestions welcome.
39 (define-key mu4e-view-mode-map ":" 'bbdb-mua-display-sender)
40 (define-key mu4e-view-mode-map ";" 'bbdb-mua-edit-field-sender))
41
42(provide 'bbdb-mu4e)
43
44;;; bbdb-mu4e.el ends here