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 19:34:47 +0530 Message-ID: <87wpijonpc.fsf@gmail.com> References: <87k2emxpon.fsf@gmail.com> <871t0u0zau.fsf@wanadoo.es> <87k2ely8v7.fsf@gmail.com> <87wpilyu31.fsf@wanadoo.es> <871t0stkqu.fsf@gmail.com> <87r38rzzl6.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 1473545071 5997 195.159.176.226 (10 Sep 2016 22:04:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2016 22:04:31 +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 Sun Sep 11 00:04:21 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 1biqNj-0008Nl-2m for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Sep 2016 00:04:15 +0200 Original-Received: from localhost ([::1]:35775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biqNg-0003HO-UZ for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Sep 2016 18:04:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biiwB-0005Je-Ri for help-gnu-emacs@gnu.org; Sat, 10 Sep 2016 10:07:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biiw7-0005ZW-L6 for help-gnu-emacs@gnu.org; Sat, 10 Sep 2016 10:07:18 -0400 Original-Received: from [195.159.176.226] (port=56923 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biiw7-0005ZB-Dj for help-gnu-emacs@gnu.org; Sat, 10 Sep 2016 10:07:15 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1biiw0-0007oQ-9c for help-gnu-emacs@gnu.org; Sat, 10 Sep 2016 16:07:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 69 Original-X-Complaints-To: usenet@blaine.gmane.org User-Mail-Address: nsivaram.net@gmail.com Cancel-Lock: sha1:kFhYl+a66uh07Bmh9+ow2xHEmDw= 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 18:03:34 -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:111326 Archived-At: On Sat, Sep 10 2016,Óscar Fuentes wrote: [snipped 17 lines] > If you always use absolute paths and don't plan to change them, not > much, other than noise. The lines I suggested makes possible to move > your files to another directory requiring only a change to $HOME/.emacs. > > And by not setting user-init-file some features will try to > inspect/modify $HOME/.emacs instead of your_el_repo/emacs.el. OK, then I better fix that. [snipped 8 lines] > Prepending those files with a dot is not a good idea. The dot means that > the files are hidden on most GNU/Linux file browsers and might confuse > some tools on windows, that expect file names to obey the name.extension > format. Yes the naming was deliberate with a . prefix. I didn't want the files to clutter my $HOME/ in my linux box, so I let it get hidden by using a . prefix. On Windows, so far, I haven't had any problems as no other program looks for these kind of files > > Besides, load-file is an interactive function that calls `load'. With > my suggested adjustment to load-path you can simply use > > (load "text_config.el") > > or simply > > (load "text_config") > > which will also work if you ever decide to byte-compile your config files. Thanks for this. I will relook at the load-path suggestion of yours. [snipped 7 lines] > One thing I do is to use a separate file for customizations: > > (setq custom-file > (concat (file-name-directory load-file-name) "customizations.el")) > (load custom-file 't) Sorry, I'm lost here; could you please give an example of your set up and how it helps. I broke up my .emacs to manage the customisations for each mode. How would your example help? > > If you use custom themes you probably want to set custom-theme-directory > too. Right, will fix this too, as I see this custom-theme-directory is a variable defined in `custom.el'. Its value is "~/.emacs.d/" Original value was "c:/gnu/initfiles/.emacs.d/" Thanks sivaram --