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

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

Re: Organized Learning


From: Kevin Dziulko
Subject: Re: Organized Learning
Date: Thu, 25 Sep 2003 09:03:08 -0400 (EDT)

Can I put this function into a .el file?  I tried but I get a message that 
reads "Symbol's function definition is void: loop"

Also, I use emacs just as an editor, and not as an environment, so how can 
I make it so it truely only gets displayed once a day, no matter how many 
times I start emacs?

Thanks! 


On Wed, 24 Sep 2003, Jesper Harder wrote:

> address@hidden (Artist) writes:
> 
> > I recently came upon a website called Stumbleupon.com where there is
> > a small toolbar to download and you get different website each time
> > you click the stumble icon matching to your interest and then you
> > rate the website etc..
> >
> > Question: How we can converge the theme of the application with
> > emacs to learn new emacs things
> 
> This small code snippet (by Dave Pearson) that displays a "tip of the
> day":
> 
> (defun totd ()
>   (interactive)
>   (with-output-to-temp-buffer "*Tip of the day*"
>     (let* ((commands (loop for s being the symbols
>                            when (commandp s) collect s))
>            (command (nth (random (length commands)) commands)))
>       (princ
>        (concat "Your tip for the day is:\n========================\n\n"
>                (describe-function command)
>                "\n\nInvoke with:\n\n"
>                (with-temp-buffer
>                  (where-is command t)
>                  (buffer-string)))))))
> 
> You could invoke it in .emacs to stumble upon a random command every
> time you start Emacs.  keywiz.el¹ is another way to learn about new
> commands (and remember their key bindings).
> 
> ¹ <http://purl.org/harder/keywiz.el>
> _______________________________________________
> Help-gnu-emacs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> 





reply via email to

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