emacs - 将当前条目插入 BBDB

标签 emacs gnus bbdb

我读过“将某个人的条目插入 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/

相关文章:

emacs - 根据第一位数字对齐数字(不是减号)

python - Emacs 和 Python

email - Gnus 回复并在顶部签名

emacs - Gnus:如何一次保存*所有*附件?

emacs - 在 gnus 中循环 BBDB 匹配并抑制弹出窗口

emacs - 如何使用 Emacs nREPL 选择/切换 Leiningen 配置文件?

emacs - 从交互函数内部调用kill-rectangle

emacs - 如何在Google Group等新闻组中使用Gnus?

emacs - 为 BBDB3 中的所有电子邮件地址自动创建条目