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

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

Re: fortune errors


From: drkm
Subject: Re: fortune errors
Date: Sun, 05 Jun 2005 18:29:36 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Mads Jensen <spam@raptus.dk> writes:

> Debugger entered--Lisp error: (error "Can't compile fortune file
>   /home/madsj/docs/ascii/misc/fortunes/usenet")

> (require 'fortune)
> (add-hook 'mail-setup-hook 'fortune-to-signature)
> (setq fortune-dir "/usr/share/games/fortune"
>       fortune-file "/usr/share/games/fortune/fortunes")

  Very strange.  'fortune-file' seems to keep its initial value.
Does switching the 'setq' before the 'require' help?  But IMHO it
will not change anything.

    (setq fortune-dir  "/usr/share/games/fortune"
          fortune-file "/usr/share/games/fortune/fortunes")
    (require 'fortune)
    (add-hook 'mail-setup-hook 'fortune-to-signature)

  BTW, because 'fortune-to-signature' is an autoload, you don't
need the 'require'.  So the feature will be loaded only if used.

--drkm



reply via email to

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