我读过“将某个人的条目插入 BBDB 的最简单方法是,当选定来自他的消息时,在摘要缓冲区中按 :(冒号)。如果该人已在数据库中,什么也不会发生;否则,Emacs 会询问你是否要将他插入到数据库中。”
这对我不起作用,我想是因为我正在使用 BBDB 3。
编辑:“:”运行命令“bbdb-mua-display-sender”。
有解决办法吗?
最佳答案
这是我在 .emacs 中使用的与 Gnus 中的 BBDB-3 配合使用的方法,它将将此功能赋予 ; 键:
(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)))
我从网上的某个地方得到了这个信息,但现在无法确定是在哪里;也许这可以让你走上正确的道路?
关于emacs - 将当前条目插入 BBDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22174756/