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

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

Re: Organized Learning


From: Jesper Harder
Subject: Re: Organized Learning
Date: Wed, 24 Sep 2003 03:56:40 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

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>


reply via email to

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