From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Dziulko Newsgroups: gmane.emacs.help Subject: Re: Organized Learning Date: Thu, 25 Sep 2003 09:03:08 -0400 (EDT) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1064496450 1213 80.91.224.253 (25 Sep 2003 13:27:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Sep 2003 13:27:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 25 15:27:28 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A2W9Y-00045H-00 for ; Thu, 25 Sep 2003 15:27:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2W6T-0007cT-G7 for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Sep 2003 09:24:17 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A2W5O-0007O9-BJ for help-gnu-emacs@gnu.org; Thu, 25 Sep 2003 09:23:10 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A2W5H-0007LQ-69 for help-gnu-emacs@gnu.org; Thu, 25 Sep 2003 09:23:05 -0400 Original-Received: from [138.92.8.100] (helo=klaatu.canisius.edu) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A2Vm5-00036H-Vo for help-gnu-emacs@gnu.org; Thu, 25 Sep 2003 09:03:14 -0400 Original-Received: from localhost (dziulko@localhost) by klaatu.canisius.edu (8.11.6/8.11.6) with ESMTP id h8PD39r21988 for ; Thu, 25 Sep 2003 09:03:09 -0400 Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-MIME-Autoconverted: from 8bit to quoted-printable by klaatu.canisius.edu id h8PD39r21988 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12783 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12783 Can I put this function into a .el file? I tried but I get a message tha= t=20 reads "Symbol's function definition is void: loop" Also, I use emacs just as an editor, and not as an environment, so how ca= n=20 I make it so it truely only gets displayed once a day, no matter how many= =20 times I start emacs? Thanks!=20 On Wed, 24 Sep 2003, Jesper Harder wrote: > googleartist@yahoo.com (Artist) writes: >=20 > > 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 >=20 > This small code snippet (by Dave Pearson) that displays a "tip of the > day": >=20 > (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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D\n\n" > (describe-function command) > "\n\nInvoke with:\n\n" > (with-temp-buffer > (where-is command t) > (buffer-string))))))) >=20 > You could invoke it in .emacs to stumble upon a random command every > time you start Emacs. keywiz.el=B9 is another way to learn about new > commands (and remember their key bindings). >=20 > =B9 > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://mail.gnu.org/mailman/listinfo/help-gnu-emacs >=20