|
From: | Óscar Fuentes |
Subject: | Re: OT: version control of .el files in NT Emacs |
Date: | Fri, 09 Sep 2016 17:24:34 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Sivaram Neelakantan <nsivaram.net@gmail.com> 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.
[Prev in Thread] | Current Thread | [Next in Thread] |