Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Burton Samograd <kruhft@hotmail.com>
Subject: Re: Advice on writing packages please
Date: Mon, 12 May 2003 16:01:38 GMT	[thread overview]
Message-ID: <87of2817zq.fsf@kruhft.vc.shawcable.net> (raw)
In-Reply-To: <tau1c08gi7.fsf@crpppc215.epfl.ch>

marcuirl <marcuirl@imap.no2this.cc> writes:

> Hey all,
> 
> I am just about ready to start writing an emacs package of my
> own. Some of the ones I have to use just don't do it for me anymore!
> So at least I have a source to work from.
> 
> I have reasonable programming skills, though little in lisp ;-) so I
> gain two skills from this! The questions I have:
> 
> Is there a source of info on the web that I can use to help in writing
> major modes for emacs?

Check out the elisp programming guide/reference and the source
code that comes with your emacs distribution (usually under
/usr/share/emacs/<version>/lisp).

> What advice would you guys/gals give an enthusiastic newbie to this
> field?

Learn lisp, read the reference and code and learn how things are done in
the emacs world. 

> Then also some ideas on really basic stuff like:
> 
> When editing an xx.el file for mode xx do you need to keep starting a
> new emacs session for the changes to take effect? Is there an easier
> way to do this?

You can reload a file into emacs using M-x load-file.  A very useful
command when editing emacs lisp is M-C-x (hold down alt and control
and press x) which will evaluate the expression that the cursor is
over, saving you from having to reload the file with every change.
For more help, do C-h m to show the available commands in your emacs
lisp mode.

> This latter question is to help me get a foot in the door, I have
> nobody here to help with the really really basic stuff like that,
> getting over this hurdle would be a huge progress for me. Remember
> those days long ago when you had no idea what to do with an 'hello.c'
> file and your nerdy friend showed you how? Stuff like that!

(print "Hello World!" (get-buffer "*scratch*"))

if you know how to use emacs the commands in the elisp manual are
quite straightforward.  And if you don't, you'll really learn how to
use emacs after seeing what functions are available.  For learning
lisp, there are a number of sites available.  See www.lisp.org or
www.cliki.org or do some google searches on lisp programming.

> Any help much appreciated!

No problem.

-- 
burton samograd
kruhft@kruhft.dyndns.org
http://kruhftwerk.dyndns.org


      reply	other threads:[~2003-05-12 16:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-12 13:02 marcuirl
2003-05-12 16:01 ` Burton Samograd [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87of2817zq.fsf@kruhft.vc.shawcable.net \
    --to=kruhft@hotmail.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 NNTP newsgroup(s).