From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sivaram Neelakantan Newsgroups: gmane.emacs.help Subject: Re: OT: version control of .el files in NT Emacs Date: Sat, 10 Sep 2016 10:27:29 +0530 Message-ID: <871t0stkqu.fsf@gmail.com> References: <87k2emxpon.fsf@gmail.com> <871t0u0zau.fsf@wanadoo.es> <87k2ely8v7.fsf@gmail.com> <87wpilyu31.fsf@wanadoo.es> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1473501773 3367 195.159.176.226 (10 Sep 2016 10:02:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2016 10:02:53 +0000 (UTC) User-Agent: Gnus/5.130015 (Ma Gnus v0.15) Emacs/24.4 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 10 12:02:50 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bif7S-0008Hf-QH for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Sep 2016 12:02:42 +0200 Original-Received: from localhost ([::1]:33815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bif7Q-0000AG-U4 for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Sep 2016 06:02:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biaNw-0004qr-P7 for help-gnu-emacs@gnu.org; Sat, 10 Sep 2016 00:59:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biaNr-0001hn-Qk for help-gnu-emacs@gnu.org; Sat, 10 Sep 2016 00:59:23 -0400 Original-Received: from [195.159.176.226] (port=35038 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biaNr-0001hd-Jf for help-gnu-emacs@gnu.org; Sat, 10 Sep 2016 00:59:19 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1biaNk-0005Kz-90 for help-gnu-emacs@gnu.org; Sat, 10 Sep 2016 06:59:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@blaine.gmane.org User-Mail-Address: nsivaram.net@gmail.com Cancel-Lock: sha1:GF+0yyQxhigYfhUF+BHyuzh/7hg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-Mailman-Approved-At: Sat, 10 Sep 2016 06:02:12 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111324 Archived-At: 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 --