* newbie. skeleton question.
@ 2007-07-04 16:42 Pawel
0 siblings, 0 replies; 2+ messages in thread
From: Pawel @ 2007-07-04 16:42 UTC (permalink / raw)
To: emacs mailing list
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.
Have You got idea, why?
Regards,
Pawel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: newbie. skeleton question.
[not found] <mailman.3063.1183567231.32220.help-gnu-emacs@gnu.org>
@ 2007-07-05 6:45 ` Anselm Helbig
0 siblings, 0 replies; 2+ messages in thread
From: Anselm Helbig @ 2007-07-05 6:45 UTC (permalink / raw)
To: help-gnu-emacs
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
this:
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)))
HTH,
Anselm
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-05 6:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-04 16:42 newbie. skeleton question Pawel
[not found] <mailman.3063.1183567231.32220.help-gnu-emacs@gnu.org>
2007-07-05 6:45 ` Anselm Helbig
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.