From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: some information to build a major-mode Date: Sat, 20 Oct 2007 17:58:37 +0200 Message-ID: References: <000401c80b25$11309070$6501a8c0@sauro> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192895942 23963 80.91.229.12 (20 Oct 2007 15:59:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2007 15:59:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Sauro Cesaretti" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 17:59:03 2007 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 1IjGj7-0003Uc-Up for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Oct 2007 17:59:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjGj0-00046P-HA for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Oct 2007 11:58:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IjGil-00042I-HV for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 11:58:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IjGii-0003y6-UZ for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 11:58:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IjGii-0003xz-Qo for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 11:58:36 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IjGii-0003YD-E1 for help-gnu-emacs@gnu.org; Sat, 20 Oct 2007 11:58:36 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id 5407BA583BCA; Sat, 20 Oct 2007 17:58:35 +0200 (CEST) Original-Received: from [84.175.184.211] (helo=wednesday) by smtp08.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #197) id 1IjGig-0004vF-00; Sat, 20 Oct 2007 17:58:34 +0200 In-Reply-To: <000401c80b25$11309070$6501a8c0@sauro> (Sauro Cesaretti's message of "Wed\, 10 Oct 2007 12\:05\:20 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (darwin) X-Sender: n_schumacher@web.de X-Provags-ID: V01U2FsdGVkX19yWHz7kUmCCACHpgtHG7g3AouGIuifgB0VITPQ czI6u8V2pAtvO8ko7D8yDpKZUhv5HP6sAA5RS9J455A0jw0M0S MojyOt47Ca9xsoTEkV6g== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:48623 Archived-At: "Sauro Cesaretti" wrote: > I'm a blind student and I need your help to set up a major mode in emacs to > define a simple enviroment that permits > to insert all the symbols that I defined to write mathematical expression. > I understand a little how I can define a major mode but now I don't know > if there is a function that permits me to insert a symbol in the buffer > where I'm writing, by means of a shortcut. > I have a table of symbols that I use and I'd like to define some > shortcuts to insert them in a fast way. It doesn't sound like you want a major mode. What I'd suggest depends on what you mean by shortcut: text or a key-strokes? If it's the first, look into abbrevs, for the second you can write your own functions, which you can then bind to keys. They could look like this. (defun insert-foo () (interactive) (insert "foo")) regards, Nikolaj Schumacher