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: Eli Zaretskii
Subject: Re: run/load a lisp script before user init file
Date: Mon, 07 Oct 2013 23:08:51 +0300

> Date: Mon, 07 Oct 2013 21:37:40 +0200
> From: Jarek Czekalski <address@hidden>
> 
> Appending to the end of the file is a piece of cake. But I have to 
> consider also a reinstallation case. A case that the file was edited and 
> then reinstallation happens.

What's a "reinstallation"?

> So I need to find my previous code, erase it.

No, you don't.  You could use 'require' instead of 'load'.

> What a complicated process. And this complication makes a lot of 
> error opportunities. Any error in this file makes emacs not start at 
> all. That's dangerous.

Once again, if you wrap this with ignore-errors, Emacs will always
start.  No danger here.

> Does that mean I should overwrite the file not caring who used it and 
> what for? That's what you call a "clean solution"? :)

I suggested what I could.  If you want something else, perhaps others
could suggest something you will like.



reply via email to

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