help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to set an abbreviation in a custom mode


From: Ian Eure
Subject: Re: Trying to set an abbreviation in a custom mode
Date: Sun, 7 Dec 2008 22:03:06 -0800

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 via email to

[Prev in Thread] Current Thread [Next in Thread]