[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tip of the day
From: |
Tyler Smith |
Subject: |
Re: Tip of the day |
Date: |
24 Jun 2007 22:51:20 GMT |
User-agent: |
slrn/0.9.8.1pl1 (Debian) |
On 2007-06-24, Adam <nospam@example.com> wrote:
>
> Thanks Tassilo.
>
> Forgive my ignorance, I suppose really I was wanting
> to give that function a test-run, by not including it
> in my startup file, but by entering it into my Emacs
> session. Then running (totd) or M-x totd
>
> Then including in .emacs, and binding to a key later.
>
> Is this possible, by entering the function into
> the *scratch* buffer and evaluating it somehow.
>
Yes, if you copy the function to scratch, move the cursor to the line
after the end of the function, you can evaluate it with C-x C-e. You can
then run the code with M-x totd <ret> or M-: (totd) <ret>.
Note that you should probably change the 'n' values in the concat
strings to '\n' to get properly formatted output.
HTH,
Tyler