From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@newcastle.ac.uk (Phillip Lord) Newsgroups: gmane.emacs.help Subject: Re: using use-package Date: Tue, 04 Aug 2015 22:24:17 +0100 Message-ID: <87mvy6g326.fsf@newcastle.ac.uk> References: <878u9rxflg.fsf@skimble.plus.com> <87lhdrdnaw.fsf@newcastle.ac.uk> <87h9oeq5cm.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438723492 15332 80.91.229.3 (4 Aug 2015 21:24:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2015 21:24:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Sharon Kimble Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 04 23:24:46 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 1ZMjhU-0000SP-PG for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2015 23:24:44 +0200 Original-Received: from localhost ([::1]:38282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMjhU-0003Gy-8F for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2015 17:24:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMjhH-0003F1-8B for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 17:24:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMjhE-0004YI-1z for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 17:24:31 -0400 Original-Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:51188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMjhD-0004Y6-Sy for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 17:24:28 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1ZMjhD-0004xL-DE; Tue, 04 Aug 2015 22:24:27 +0100 Original-Received: from cpc6-benw10-2-0-cust45.gate.cable.virginm.net ([92.238.179.46] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1ZMjhB-00012X-GS; Tue, 04 Aug 2015 22:24:26 +0100 In-Reply-To: <87h9oeq5cm.fsf@skimble.plus.com> (Sharon Kimble's message of "Tue, 4 Aug 2015 19:24:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.22 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:106235 Archived-At: Sharon Kimble writes: > phillip.lord@newcastle.ac.uk (Phillip Lord) writes: > >> Sharon Kimble writes: >> >> >> >> It's the line before! >> >> :init >> >> >> needs an argument. The problem is that ":bind" is being interpreted as >> the argument for ":init", but not crashing (because it's a macro) and >> then the alist is breaking. >> >> Probably you don't need the :init at all. > > Thanks, your right, it is tangling well now with no problems, along > with Chunyang's spot of a missing "-". Ah, yes, you have to run it to actually see that error. > Thanks all folks, I'm hoping to rewrite my total init file this week to > use "use-package" with every package that I use, but we shall see. Oh, use-package is great. It is not that it actually does that much (although it does some stuff!), but that it allows (and in all honesty, forces) you to group together all configuration. I used to do this with multiple files that I loaded, but this works as better and is simpler. Add in :ensure and the unison file sync tool, and you can move from machine to machine, with identical set ups -- that's the way I use it. Pretty much the only package that I do not use use-package for is use-package, as it doesn't bootstrap! If I can be allowed to add a plug, also worth taking a look at my own lentic package. I know that some people are using this for their init file. It allows you to use org without all that tangling business. Phil