From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Customizable modes and package.el Date: Mon, 30 Mar 2015 13:28:02 -0400 Message-ID: References: <87fv8mcz6h.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427736553 22811 80.91.229.3 (30 Mar 2015 17:29:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2015 17:29:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 30 19:29:02 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YcdUU-0001O8-NY for ged-emacs-devel@m.gmane.org; Mon, 30 Mar 2015 19:28:46 +0200 Original-Received: from localhost ([::1]:35346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcdUU-0002Fk-1W for ged-emacs-devel@m.gmane.org; Mon, 30 Mar 2015 13:28:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcdUG-0002Fd-3z for emacs-devel@gnu.org; Mon, 30 Mar 2015 13:28:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcdUB-0003K1-4w for emacs-devel@gnu.org; Mon, 30 Mar 2015 13:28:32 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:36853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcdUB-0003Jx-0h for emacs-devel@gnu.org; Mon, 30 Mar 2015 13:28:27 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id AE9C085D61; Mon, 30 Mar 2015 13:28:26 -0400 (EDT) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 1AFA81E5B8B; Mon, 30 Mar 2015 13:28:03 -0400 (EDT) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id DA173B40DB; Mon, 30 Mar 2015 13:28:02 -0400 (EDT) In-Reply-To: <87fv8mcz6h.fsf@gmail.com> (Robert Pluim's message of "Mon, 30 Mar 2015 16:55:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184558 Archived-At: >>> That's not an option, because the user may need/want to run some Elisp >>> code of his own choosing *before* package-initialize is called. >>> E.g. in my case, I need to set package-load-list and >>> package-directory-list before package-initialize runs. >> `package-initialize' could look into some file like >> ~/.emacs.d/package-init.el and load that before initializing. > Please, not Yet Another File That Changes Emacs' Behaviour Exactly. So, for these reasons, "the solution" is to add "(package-initialize)" in the ~/.emacs file. Yes, this solution also sucks in some ways, but there's no perfect solution, and this one is the most Emacs-ish solution, since it is simple, and gives the most flexibility. Stefan