From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: Abbrev in message-mode Date: Thu, 16 May 2013 19:29:47 +0200 Message-ID: <20130516172947.GA28947@kuru.dyndns-at-home.com> References: <20130516125636.GE14224@kuru.dyndns-at-home.com> <87obcbyr3q.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1368725415 15575 80.91.229.3 (16 May 2013 17:30:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 May 2013 17:30:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 16 19:30:14 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ud20K-0005nf-FS for geh-help-gnu-emacs@m.gmane.org; Thu, 16 May 2013 19:30:12 +0200 Original-Received: from localhost ([::1]:40909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ud20J-0007Mk-VI for geh-help-gnu-emacs@m.gmane.org; Thu, 16 May 2013 13:30:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ud206-0007Kl-CP for help-gnu-emacs@gnu.org; Thu, 16 May 2013 13:30:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ud200-0002zt-Ll for help-gnu-emacs@gnu.org; Thu, 16 May 2013 13:29:58 -0400 Original-Received: from mail-ee0-f42.google.com ([74.125.83.42]:33746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ud200-0002zn-FJ for help-gnu-emacs@gnu.org; Thu, 16 May 2013 13:29:52 -0400 Original-Received: by mail-ee0-f42.google.com with SMTP id c50so1928736eek.15 for ; Thu, 16 May 2013 10:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=VP6ZZDa1uV96c9jdnDJJ0/QFVp7n1BfquudYGbSTuZQ=; b=D1lmSSbYzfKjq3DwmKepdc7XHkx2BAnNvOAe6mt7cCovcRKpAZ2da49Y25OzlHK5Ik FtzNjBleiMpWlbIXnjDFW73Tfek2IyCV4k2oCz2ScYcr90Uwun+bIaQ0biu/GCScFo90 LdPORsUaPg0jq8FlWnrdqRp+O2PTMp1dO7a9QujD5ehZfW3rdXWPALvgGXMlu5Swv7Vg ilcdZnBrUUIW9PJ2rGrru8bzGaGhIOhn98OuJKkQTIAr8uIZAh+ivinUpSZG2RTjO+03 jPV1sOnTg6SyjR8RkPW4Dd7tWqYxIoRGsQLCN9VlScY2+xf0Bob7OKyih34OLv4IPmhI aWIQ== X-Received: by 10.14.3.4 with SMTP id 4mr59330641eeg.8.1368725391688; Thu, 16 May 2013 10:29:51 -0700 (PDT) Original-Received: from kuru.dyndns-at-home.com ([2001:610:120:3000:f2de:f1ff:fe37:c76c]) by mx.google.com with ESMTPSA id c42sm12080021eeb.10.2013.05.16.10.29.49 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 16 May 2013 10:29:50 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87obcbyr3q.fsf@VLAN-3434.student.uu.se> User-Agent: Mutt/1.5.21 (2012-12-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.83.42 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90854 Archived-At: On Thu, May 16, 2013 at 03:46:49PM +0200, Emanuel Berg wrote: > Suvayu Ali writes: > > >> But, how do I get abbrevs to work in the the actual *message*? > > > > Doesn't message-mode-abbrev-table work? > > Here it doesn't. The abbrev table is setup, and abbrev mode is > enabled. I agree it is strange. Why don't you try it? Perhaps I messed > something up. But for all other modes, Abbrev works fine. This is my setup: (define-abbrev-table 'message-mode-abbrev-table '(("kfactor" "k-factor" nil 0) ("hth" "Hope this helps" nil 0) ("HTH" "Hope this helps" nil 0) ("cheers" "Cheers" nil 0) ) "Abbreviation table for `message-mode'. Inherits from `text-mode-abbrev-table' and `unicode-abbrev-table'." :parents (list text-mode-abbrev-table unicode-abbrev-table)) (add-hook 'message-mode-hook (lambda () ;; dynamic abbreviations for org-mode (setq local-abbrev-table message-mode-abbrev-table))) Hope this helps, -- Suvayu Open source is the future. It sets us free.