Paste current entry into BBDB

I read that “The easiest way to insert a record for a person in BBDB is to press: (colon) in the Summary buffer when the message from it is selected. If the person is already in the database, nothing happens, otherwise Emacs asks you if you want to insert it into the database. "

This does not work for me, I think, because I use BBDB 3.

EDIT: ':' runs the command 'bbdb-mua-display-sender'.

Is there a workaround to this?

+4
source share
1 answer

This is what I use in my .emacs to work with BBDB-3 in Gnus, it will give this functionality a key ; :

(require 'bbdb-autoloads)
(require 'bbdb)

;; initialization
(bbdb-initialize 'gnus 'message)
(bbdb-mua-auto-update-init 'gnus 'message)

;; size of the bbdb popup
(setq bbdb-pop-up-window-size 0.15)
(setq bbdb-mua-pop-up-window-size 0.15)

;; What do we do when invoking bbdb interactively
(setq bbdb-mua-update-interactive-p '(query . create))

;; Make sure we look at every address in a message and not only the
;; first one
(setq bbdb-message-all-addresses t)

;; use ; on a message to invoke bbdb interactively
(add-hook
 'gnus-summary-mode-hook
 (lambda ()
    (define-key gnus-summary-mode-map (kbd ";") 'bbdb-mua-edit-field)))

- , , ; , ?

+4

Source: https://habr.com/ru/post/1530035/


All Articles