Discussion:
auto-complete
Eric S Fraga
2015-10-04 15:01:28 UTC
Permalink
Hi
[...]
Why auto-complete doesn't work ?
Do I press TAB key to auto-complete ?
What is it you expect to auto-complete?

If it is mail addresses, what address book tool do you use? If bbdb, I
do the following:

--8<---------------cut here---------------start------------->8---
(require 'bbdb)
(require 'bbdb-loaddefs)
(bbdb-initialize 'gnus 'message) ; 'vm 'w3
(bbdb-mua-auto-update-init 'gnus 'message)
(bbdb-mail-aliases)
--8<---------------cut here---------------end--------------->8---
--
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 25.0.50.2 + Ma Gnus v0.14 + evil-git-ff74cfb
: BBDB version 3.1.2 (2014-04-28 23:20:47+00:00)
Peter Münster
2015-10-04 19:19:57 UTC
Permalink
Post by Eric S Fraga
(require 'bbdb)
(require 'bbdb-loaddefs)
(bbdb-initialize 'gnus 'message) ; 'vm 'w3
(bbdb-mua-auto-update-init 'gnus 'message)
(bbdb-mail-aliases)
And this is nice for resending messages ("S D r"):

--8<---------------cut here---------------start------------->8---
(defun message-read-from-minibuffer (prompt &optional initial-contents)
"Read from the minibuffer while providing abbrev expansion."
(bbdb-completing-read-mails "To: " initial-contents))
--8<---------------cut here---------------end--------------->8---
--
Peter
Loading...