From: "\"Clément B.\"" <clement@inventati.org>
To: emacs-orgmode@gnu.org, jw.hendy@gmail.com, pfd@pfdstudio.com
Subject: Re: Keeping up to date
Date: Wed, 30 Apr 2014 19:51:39 +0200 [thread overview]
Message-ID: <5361382B.5090805@inventati.org> (raw)
In-Reply-To: <CAAjq1md5QRoFLZj-kQzntR6jr+D7d-ZWgoaVGofsD2Z3pKVHFw@mail.gmail.com>
Hi everyone,
> So, yes, that's a bit of a headache
> as well and I think if you are doing a bunch with extra Emacs add-ons,
> it would be worth syncing.
Rather than Dropbox, you could use a version control system. My entire
.emacs.d is under git control, I can try out a library, and if I like
it, check it in. That way, I don't really care if my elisp directory is
dirty, I only take home what I like.
Now, that works well for lonely .el files. Two problems arise if :
1. The library is a clone of another git repository (like org)
2. The library comes from melpa (also like org)
For the first one, technically, you could checkout org git repository
inside your .emacs, and manage it as a submodule, but they are a huge
pain. If you pull it out you can keep everything in sync though, and
still be able to play around with org branches.
For the second one, melpa packages change too often to make it practical
to check them in. One solution is use cask, as recommended by Grant, the
other one (a bit more simplistic), is to make sure that the library is
installed on every box you use, so the sync happens at the (m)elpa
level. I have the following code in my init.el (it comes from emacs
prelude I think) :
(require 'cl)
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/"))
(unless package-archive-contents
(package-refresh-contents)
(defvar my-packages
'(org auctex ess)
"A list of packages to ensure are installed at launch.")
(dolist (pack my-packages)
(when (not (package-installed-p pack))
(package-install pack)))))
This makes sure org from melpa is installed when emacs starts. It
doesn't check whether it's the last version though.
Clément
prev parent reply other threads:[~2014-04-30 17:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-29 16:16 Keeping up to date Peter Davis
2014-04-29 16:44 ` Greg Troxel
2014-04-29 16:45 ` John Hendy
2014-04-29 18:27 ` Peter Davis
2014-04-29 20:34 ` John Hendy
2014-04-29 23:12 ` Grant Rettke
2014-04-30 17:51 ` "Clément B." [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5361382B.5090805@inventati.org \
--to=clement@inventati.org \
--cc=emacs-orgmode@gnu.org \
--cc=jw.hendy@gmail.com \
--cc=pfd@pfdstudio.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.