* fortune errors
@ 2005-06-05 13:07 Mads Jensen
2005-06-05 16:29 ` drkm
0 siblings, 1 reply; 2+ messages in thread
From: Mads Jensen @ 2005-06-05 13:07 UTC (permalink / raw)
Hi NG,
I found some code snippets for adding a small fortune-cookie, when you
send out emails, but I'm getting this bug for some strange reason:
Debugger entered--Lisp error: (error "Can't compile fortune file
/home/madsj/docs/ascii/misc/fortunes/usenet") signal(error ("Can't
compile fortune file /home/madsj/docs/ascii/misc/fortunes/usenet"))
error("Can't compile fortune file %s"
"/home/madsj/docs/ascii/misc/fortunes/usenet")
fortune-compile("/home/madsj/docs/ascii/misc/fortunes/usenet")
fortune-in-buffer(nil nil) fortune-to-signature()
run-hooks(mail-setup-hook) mail-setup(nil nil nil nil nil nil)
mail(nil) * call-interactively(mail) execute-extended-command(nil)
call-interactively(execute-extended-command)
I have these lines in my ~/.emacs, that should control the fortune
cookie thing:
(require 'fortune)
(add-hook 'mail-setup-hook 'fortune-to-signature)
(setq fortune-dir "/usr/share/games/fortune"
fortune-file "/usr/share/games/fortune/fortunes")
But I still get this weird error. Can anyone please help me ?
--
Mads Jensen - mail sent to address ends in /dev/null
s/spam/madsj for emailing me
Research is what I'm doing when I don't know what I'm doing.
-- Wernher von Braun
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fortune errors
2005-06-05 13:07 fortune errors Mads Jensen
@ 2005-06-05 16:29 ` drkm
0 siblings, 0 replies; 2+ messages in thread
From: drkm @ 2005-06-05 16:29 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-05 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-05 13:07 fortune errors Mads Jensen
2005-06-05 16:29 ` drkm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).