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

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

Re: OT: version control of .el files in NT Emacs


From: Sivaram Neelakantan
Subject: Re: OT: version control of .el files in NT Emacs
Date: Sat, 10 Sep 2016 10:27:29 +0530
User-agent: Gnus/5.130015 (Ma Gnus v0.15) Emacs/24.4 (windows-nt)

On Fri, Sep 09 2016,Óscar Fuentes wrote:


[snipped 17 lines]

> You probably noticed that you need to adjust the load-path. A robust way
> of doing that is to put in your_el_repo/emacs.el :
>
> (add-to-list 'load-path (file-name-directory load-file-name))
>
> It is also is useful to put this
>
> (setq user-init-file load-file-name)
>
> at the beginning of your emacs.el file in your_el_repo. Look up the
> docstring for the user-init-file variable to see why.
>

How does this help?  Because I have just 2 lines in the $HOME/.emacs

(setq user-emacs-directory "c:/gnu/initfiles/.emacs.d/" )
(load-file "c:/gnu/initfiles/.emacs")

And in the c:/gnu/initfiles/.emacs file I hard coded paths like

(load-file "c:/gnu/initfiles/.text_config.el")
(load-file "c:/gnu/initfiles/.ido_config.el")
(load-file "c:/gnu/initfiles/.ac_config.el")
(load-file "c:/gnu/initfiles/.r_ess_config.el")
(load-file "c:/gnu/initfiles/.cygwin_config.el")
(load-file "c:/gnu/initfiles/.uniq_config.el")
(load-file "c:/gnu/initfiles/.smex_config.el")

I get it that .sh_history, .smex_history and other .history*
files used/created by various packages will be still created in
$HOME/.emacs but those are fairly transient stuff aren't they?



sivaram
-- 




reply via email to

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