From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2470 Path: news.gmane.org!not-for-mail From: Burton Samograd Newsgroups: gmane.emacs.gnus.user Subject: Re: Advice on writing packages please Date: Mon, 12 May 2003 16:01:38 GMT Organization: Shaw Residential Internet Message-ID: <87of2817zq.fsf@kruhft.vc.shawcable.net> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668888 15228 80.91.229.2 (31 Jan 2006 00:54:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:54:48 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:44 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!uio.no!feed.news.nacamar.de!newsfeed.stueberl.de!east.cox.net!peer02.cox.net!cox.net!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news3.calgary.shaw.ca.POSTED!not-for-mail X-Trace-PostClient-IP: 24.84.172.8 Original-Sender: kruhft@kruhft.vc.shawcable.net Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-NNTP-Posting-Host: 24.69.255.206 Original-X-Complaints-To: abuse@shaw.ca Original-X-Trace: news3.calgary.shaw.ca 1052755298 24.69.255.206 (Mon, 12 May 2003 10:01:38 MDT) Original-NNTP-Posting-Date: Mon, 12 May 2003 10:01:38 MDT Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2610 Original-Lines: 59 X-Gnus-Article-Number: 2610 Tue Jan 17 17:30:44 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2470 Archived-At: marcuirl 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//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