unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ian Eure <ian@digg.com>
To: Davin Pearson <davin.pearson@gmail.com>
Cc: help-gnu-emacs@gnu.org, Mike Ashmore <mashmore@digg.com>
Subject: Re: Trying to set an abbreviation in a custom mode
Date: Sun, 7 Dec 2008 22:03:06 -0800	[thread overview]
Message-ID: <B68E1725-F18A-4DEF-ACE0-9E1E9A162557@digg.com> (raw)
In-Reply-To: <b4d49d05-dfe4-477b-9d65-5deb366d0ba2@i24g2000prf.googlegroups.com>

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




  reply	other threads:[~2008-12-08  6:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-08  2:40 Trying to set an abbreviation in a custom mode Davin Pearson
2008-12-08  6:03 ` Ian Eure [this message]
     [not found] ` <mailman.2197.1228716190.26697.help-gnu-emacs@gnu.org>
2008-12-08  9:51   ` Davin Pearson
2008-12-08  9:57     ` Davin Pearson
2008-12-09 14:22       ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B68E1725-F18A-4DEF-ACE0-9E1E9A162557@digg.com \
    --to=ian@digg.com \
    --cc=davin.pearson@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mashmore@digg.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).