help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first emacs lisp script: hello world


From: Lennart Borgman (gmail)
Subject: Re: first emacs lisp script: hello world
Date: Fri, 07 Dec 2007 18:18:37 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Stewart Haddock wrote:
All right.. Here comes the new guy.

I downloaded emacs, but I can not figure out how to create a hello world script and run it. I know this is incredibly basic, but when you are doing this stuff by yourself it is not always obvious. Can someone point the way?


Maybe

  http://www.emacswiki.org/cgi-bin/emacs-en?CategoryCode

or a simple hello-world:

  (defun hello-world()
    (interactive)
    (message "Hello!"))

put that in your *Scratch* buffer, do

  M-x eval-buffer

and then

  M-x hello-world




reply via email to

[Prev in Thread] Current Thread [Next in Thread]