info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tab completion for "short name" in .mailrc


From: Vagn Johansen
Subject: Re: tab completion for "short name" in .mailrc
Date: Thu, 26 Feb 2009 09:15:47 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

John Velman <velman@cox.net> writes:

> I'm setup for completion of the full address after I type in the "short
> name" from .mailrc, but sometimes I've got a short name that I don't use
> very often, and it would be nice to have tab completion.  For example,
> I've got the "mutt-users" list aliased as muttusers.  (Of course now
> that I've switched to gnus, I may never use this again, but for
> example...) It would be nice to type mutt<tab> and have the list of
> completions shown.

;;; mailabbrev.el --- abbrev-expansion of mail aliases

It is a part of emacs.


Maybe this snippet is all you need:

(defun  my-message-mode-hook ()
  (local-set-key (kbd "ESC TAB") 'mail-abbrev-complete-alias)
  (local-set-key (kbd "ESC a") 'mail-abbrev-insert-alias))

(add-hook 'message-mode-hook 'my-message-mode-hook)

-- 
Vagn Johansen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]