From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Eure Newsgroups: gmane.emacs.help Subject: Re: Trying to set an abbreviation in a custom mode Date: Sun, 7 Dec 2008 22:03:06 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228716220 17076 80.91.229.12 (8 Dec 2008 06:03:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2008 06:03:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Mike Ashmore To: Davin Pearson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 08 07:04:44 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 1L9ZEY-0007W0-8E for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Dec 2008 07:04:42 +0100 Original-Received: from localhost ([127.0.0.1]:53614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9ZDN-0005W0-6X for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Dec 2008 01:03:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9ZD3-0005Vv-0D for help-gnu-emacs@gnu.org; Mon, 08 Dec 2008 01:03:09 -0500 Original-Received: from [199.232.76.173] (port=48639 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9ZD2-0005Vn-KF for help-gnu-emacs@gnu.org; Mon, 08 Dec 2008 01:03:08 -0500 Original-Received: from zimbra.digg.com ([64.191.203.36]:40918 helo=mail.digg.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9ZD2-0006Kt-40 for help-gnu-emacs@gnu.org; Mon, 08 Dec 2008 01:03:08 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.digg.com (Postfix) with ESMTP id 94F08A85037; Sun, 7 Dec 2008 22:03:07 -0800 (PST) X-Virus-Scanned: amavisd-new at X-Spam-Score: -0.563 Original-Received: from mail.digg.com ([127.0.0.1]) by localhost (mail.digg.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0WbAguZ7MTH2; Sun, 7 Dec 2008 22:03:07 -0800 (PST) Original-Received: from [192.168.1.100] (adsl-69-105-73-141.dsl.pltn13.pacbell.net [69.105.73.141]) by mail.digg.com (Postfix) with ESMTP id 36849A85034; Sun, 7 Dec 2008 22:03:07 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:60444 Archived-At: On Dec 7, 2008, at 6:40 PM, Davin Pearson wrote: > I tried the following code to get "sop" as an abbreviation for > "System.out.println" in a custom mode but it doesn't appear to work: > > (define-abbrev global-abbrev-table "sop" "System.out.println(") > If you enable abbrev-mode in your buffer, you get bindings to define abbrevs: 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 point) - Ian