[Top][All Lists]

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

Re: newbie. skeleton question.

From: Anselm Helbig
Subject: Re: newbie. skeleton question.
Date: Thu, 05 Jul 2007 08:45:35 +0200
User-agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.0 Mule/5.0 (SAKAKI)

At Wed, 4 Jul 2007 18:42:59 +0200,
Pawel wrote:
> I defined simple skeleton:
> (define-skeleton sexpr-example
>   "Insert a silly example."
>   ""
>   > "Emacs version is: " emacs-version \n
>   > "And time is: " (current-time-string))
> (define-abbrev text-mode-abbrev-table "slly" 
>    "silly text: " 'sexpr-example)
> M-x sexpr-example : works for me.
> while,
> slly<SPC> does not. I am of course in buffer with text-mode.

Everything works as expected here (some GNU Emacs 22). Maybe you want
to turn on abbrev-mode? Otherwise, you'd have to type something like

  sllyC-x a e

to get the skeleton expanded.

To activate abbrev-mode automatically for all buffers in text-mode,
add something like this to your .emacs:

(add-hook 'text-mode-hook 
          (lambda () (abbrev-mode 1)))



reply via email to

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