[Top][All Lists]

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

Re: testing configuration

From: Pascal J. Bourguignon
Subject: Re: testing configuration
Date: Sun, 27 Dec 2009 18:53:08 +0100
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.3 (gnu/linux)

andrea <address@hidden> writes:

> I was wondering if it would be possible to automatically check if my
> emacs configuration is correct.
> This can be then put in a post-commit hook to check that whenever I add
> some new features or change I don't mess up somethin else
> I would only need to:
> - load my whole configuration
> - exit and returns 0 if everything goes fine, returns another number
> otherwise.
> Any ideas?
> I can already launch a new emacs with certain conf, but how can I get a
> return value?

What about:

emacs -q --eval '(condition-case err (progn (load "~/.emacs") (kill-emacs 0)) 
(error (kill-emacs 1)))'


__Pascal Bourguignon__           

reply via email to

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