From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/11968 Path: news.gmane.org!not-for-mail From: Vagn Johansen Newsgroups: gmane.emacs.gnus.user Subject: Re: tab completion for "short name" in .mailrc Date: Thu, 26 Feb 2009 09:15:47 +0100 Message-ID: <7w3ae13970.fsf@condor.rd.evalesco.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235674837 9170 80.91.229.12 (26 Feb 2009 19:00:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Feb 2009 19:00:37 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Feb 26 20:01:53 2009 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LclUD-0004BK-EC for gegu-info-gnus-english@m.gmane.org; Thu, 26 Feb 2009 20:01:33 +0100 Original-Received: from localhost ([127.0.0.1]:49943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LclSs-0005EB-P7 for gegu-info-gnus-english@m.gmane.org; Thu, 26 Feb 2009 14:00:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LclSr-0005Dk-6k for info-gnus-english@gnu.org; Thu, 26 Feb 2009 14:00:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LclSp-0005DE-FJ for info-gnus-english@gnu.org; Thu, 26 Feb 2009 14:00:08 -0500 Original-Received: from [199.232.76.173] (port=37085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LclSp-0005DB-7x for info-gnus-english@gnu.org; Thu, 26 Feb 2009 14:00:07 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:38996 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LclSo-0003ta-OB for info-gnus-english@gnu.org; Thu, 26 Feb 2009 14:00:06 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LclSk-0006cL-Fm for info-gnus-english@gnu.org; Thu, 26 Feb 2009 19:00:02 +0000 Original-Received: from inet.evalesco.com ([212.97.129.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Feb 2009 19:00:02 +0000 Original-Received: from gonz808 by inet.evalesco.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Feb 2009 19:00:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: inet.evalesco.com User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:PIL4nQ5RVgQWKTDDs+VT7ln6oZQ= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:11968 Archived-At: John Velman 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 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