From: Nikolaj Schumacher <n_schumacher@web.de>
To: "Sauro Cesaretti" <me@saurocesaretti.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: some information to build a major-mode
Date: Sat, 20 Oct 2007 17:58:37 +0200 [thread overview]
Message-ID: <m2prz9vkuq.fsf@nschum.de> (raw)
In-Reply-To: <000401c80b25$11309070$6501a8c0@sauro> (Sauro Cesaretti's message of "Wed\, 10 Oct 2007 12\:05\:20 +0200")
"Sauro Cesaretti" <me@saurocesaretti.com> 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
next prev parent reply other threads:[~2007-10-20 15:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 10:05 some information to build a major-mode Sauro Cesaretti
2007-10-20 15:58 ` Nikolaj Schumacher [this message]
[not found] <mailman.1915.1192010728.18990.help-gnu-emacs@gnu.org>
2007-10-10 17:27 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2prz9vkuq.fsf@nschum.de \
--to=n_schumacher@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=me@saurocesaretti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).