From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gnuist006@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Adding Package Repositories in Gnu Emacs 24.4 Date: Sun, 19 Apr 2015 16:24:05 -0700 (PDT) Message-ID: <6640a486-a303-44f2-8f6e-061290c559a5@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1429485932 11245 80.91.229.3 (19 Apr 2015 23:25:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Apr 2015 23:25:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 20 01:25:24 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YjyaZ-0005rb-VY for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Apr 2015 01:25:24 +0200 Original-Received: from localhost ([::1]:51252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjyaZ-0004eM-2B for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Apr 2015 19:25:23 -0400 X-Received: by 10.236.53.170 with SMTP id g30mr5185560yhc.17.1429485846242; Sun, 19 Apr 2015 16:24:06 -0700 (PDT) X-Received: by 10.50.79.137 with SMTP id j9mr240277igx.5.1429485846217; Sun, 19 Apr 2015 16:24:06 -0700 (PDT) Original-Path: usenet.stanford.edu!j5no2685630qga.1!news-out.google.com!n7ni11729igk.0!nntp.google.com!l13no7433219iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=99.103.155.243; posting-account=REkl4woAAABFXaU7nL79XtGpnmNCQ415 Original-NNTP-Posting-Host: 99.103.155.243 User-Agent: G2/1.0 Injection-Date: Sun, 19 Apr 2015 23:24:06 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:211585 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103866 Archived-At: On Tuesday, April 14, 2015 at 8:21:25 AM UTC-7, Bourgoin, Mario wrote: > How can the custom system be reliably used to add package repositories to= Gnu Emacs 24.4 (and later)? Since in 24.4, "package-archives" may be cust= omized, that seems the way to go. >=20 > Apparently, that approach > ... only works if the custom system controls package initialisation, whic= h isn't the case in many of the popular configuration bundles. > Steve Purcell > https://github.com/milkypostman/melpa/issues/2674 > Steve wrote that people add the code: > (require 'package) > ... > (add-to-list 'package-archives '(...)) > (package-initialize) > ... > to the Emacs initialization file so they can depend on "packages" being i= nstalled and initialized when later in the initialization file, they have > (require 'some-package) > (some-package-whatever-mode t) > My problem with this was that running "package-initialize" in my Emacs in= itialization file resulted in a recently-installed version of AUCTeX (11.88= .4) being shadowed by an older built-in version of AUCTeX on load-path. (I = was using Vincent Goulet's installer emacs-24.4-modified-1.exe from > http://vgoulet.act.ulaval.ca/en/emacs/windows > and that problem may be due to AUCTeX initialization.) >=20 > So is there one best approach to use, or am I at the mercy of the Emacs c= onfiguration bundle? >=20 > Mario Bourgoin > Senior Data Scientist - Hopkinton > EMC CTD Symmetrix uCode > (508) 249-1297 Direct I think your spacing is a little off in this stanza with dotted-pairs If so, just put something like this in an init file, then add repositories as dotted pair list items as you go along: (setq package-archives '(( "elpa" . "http://elpa.gnu.org/packages/") ("melpa" . "http://melpa.milkbox.net/packages/") ))=20 It should be If so, just put something like this in an init file, then add repositories as dotted pair list items as you go along: (setq package-archives '(( "elpa" . "http://elpa.gnu.org/packages/") ("melpa" . "http://melpa.milkbox.net/packages/")) ) if at all. Bolega