From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: OT: version control of .el files in NT Emacs Date: Fri, 09 Sep 2016 17:24:34 +0200 Message-ID: <87wpilyu31.fsf@wanadoo.es> References: <87k2emxpon.fsf@gmail.com> <871t0u0zau.fsf@wanadoo.es> <87k2ely8v7.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1473435401 28543 195.159.176.226 (9 Sep 2016 15:36:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Sep 2016 15:36:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: Sivaram Neelakantan To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 09 17:36:38 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 1biNqx-0006E1-BL for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Sep 2016 17:36:31 +0200 Original-Received: from localhost ([::1]:58536 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biNqv-0007NC-Cp for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Sep 2016 11:36:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biNfx-00037F-SY for help-gnu-emacs@gnu.org; Fri, 09 Sep 2016 11:25:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biNft-00073s-TB for help-gnu-emacs@gnu.org; Fri, 09 Sep 2016 11:25:09 -0400 Original-Received: from [195.159.176.226] (port=58373 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biNft-00071R-MK for help-gnu-emacs@gnu.org; Fri, 09 Sep 2016 11:25:05 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1biNfZ-0001oM-Jv for help-gnu-emacs@gnu.org; Fri, 09 Sep 2016 17:24:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:zF3+pkDRSBUS23oLXVJM1iCczAI= 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: Fri, 09 Sep 2016 11:35:05 -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:111323 Archived-At: Sivaram Neelakantan writes: >> In HOME put an .emacs file with a single line: >> >> (load "c:/Sivaram/repos/your_el_repo/emacs.el") >> >> where your_el_repo contains your Emacs-related files and emacs.el >> contains whatever you now have in %HOME%/.emacs. > > dammit, that makes me look so stupid. I don't think so. > It's exactly what I want. Thanks for the simple idea. You're welcome. 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.