emacs-devel
[Top][All Lists]
Advanced

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

Re: run/load a lisp script before user init file


From: Jarek Czekalski
Subject: Re: run/load a lisp script before user init file
Date: Mon, 07 Oct 2013 20:42:43 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

W dniu 10/07/2013 06:43 PM, Eli Zaretskii pisze:
Site init file looks like what you want. Read about it in the "Init File" node of the Emacs User Manual.

I read the startup procedure. However it still does not seem a clean approch. You suggest that I should add a line

(load "emacspeak-loder")

to the site-start, right? But when someone removes emacspeak from system, emacs will stop to load correctly. Not nice.

So should I place some multi-line code in site-start, so that it be safe to execute? But this is not so easy to do from installer. So this may be dangerous too.

What looks interesting is site-start.d directory in Debian. Placing a file there could be what I am looking for. But I guess this is not emacs solution, but Debian solution. Nothing about site-start.d in emacs startup info.

What someone was trying before is to start a script from a command line. But we don't have a possibility to specify custom site-start file there. What a pity...

Again, does there exist any clean solution? Is there something that I could place instead of "load" to make the loading safe in case of a missing file? Is there something we could introduce to emacs to make things more comfortable?

Jarek



reply via email to

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