From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Re: Trying to set an abbreviation in a custom mode Date: Mon, 8 Dec 2008 01:51:25 -0800 (PST) Organization: http://groups.google.com Message-ID: <0ceb4bf4-55c5-4015-98df-748d8f99dfe8@w39g2000prb.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1228732889 28150 80.91.229.12 (8 Dec 2008 10:41:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2008 10:41:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 08 11:42:35 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L9dZP-0006yh-GD for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Dec 2008 11:42:32 +0100 Original-Received: from localhost ([127.0.0.1]:46202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9dYE-0007TU-JI for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Dec 2008 05:41:18 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!w39g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 60.234.132.53 Original-X-Trace: posting.google.com 1228729885 556 127.0.0.1 (8 Dec 2008 09:51:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 8 Dec 2008 09:51:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w39g2000prb.googlegroups.com; posting-host=60.234.132.53; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:165123 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60452 Archived-At: On Dec 8, 7:03=A0pm, Ian Eure wrote: > C-x a l - `add-mode-abbrev' (define abbrev for sexp at point) > C-x a i l - `inverse-add-mode-abbrev' (define expansion for sexp at =A0 > point) This is not helpful because I want to add the abbreviation programmatically, that is to say automatically every time I run Emacs. C-h f add-mode-abbrev says: Don't use this function in a Lisp program; use `define-abbrev' instead. I am stuck because I don't know how to get java-mode-abbrev-table into my custom mode. Please help me!