From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: newbie. skeleton question. Date: Thu, 05 Jul 2007 08:45:35 +0200 Organization: Freie Universitaet Berlin Message-ID: <87abub9wmo.wl@nospam.anselm.chemie.fu-berlin.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1183624646 8085 80.91.229.12 (5 Jul 2007 08:37:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2007 08:37:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 05 10:37:25 2007 connect(): Connection refused 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 1I6Mq3-0002F4-W9 for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 10:37:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6Mq3-0001i7-Il for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jul 2007 04:37:23 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: news.uni-berlin.de ZnamTtNAoIBv4OgxlBZUggRGKbgQwvCOi+mWITNOXLHzfdcnjbXwl+1TmR Cancel-Lock: sha1:mdyqkon21JLwNt4ZvVQ57wIu9K8= In-Reply-To: Mail-Followup-To: anselm@chemie.fu-berlin.de User-Agent: Wanderlust/2.15.5 (Almost Unreal) Emacs/22.0 Mule/5.0 (SAKAKI) Original-Xref: shelby.stanford.edu gnu.emacs.help:149889 X-Mailman-Approved-At: Thu, 05 Jul 2007 04:36:15 -0400 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:45479 Archived-At: 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 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