From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: using use-package Date: Tue, 04 Aug 2015 19:24:41 +0100 Message-ID: <87h9oeq5cm.fsf@skimble.plus.com> References: <878u9rxflg.fsf@skimble.plus.com> <87lhdrdnaw.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1438712710 4383 80.91.229.3 (4 Aug 2015 18:25:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2015 18:25:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 04 20:24:59 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 1ZMgtW-0003cN-S2 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2015 20:24:59 +0200 Original-Received: from localhost ([::1]:36702 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMgtW-00014u-5g for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2015 14:24:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMgtG-00014K-Hs for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 14:24:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMgtC-00006N-1I for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 14:24:42 -0400 Original-Received: from avasout05.plus.net ([84.93.230.250]:32791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMgtB-00005b-Rb for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 14:24:37 -0400 Original-Received: from london.london ([146.200.15.228]) by avasout05 with smtp id 0iQb1r0034vE4La01iQcYF; Tue, 04 Aug 2015 19:24:36 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=FZvKv8K6 c=1 sm=1 tr=0 a=BZK4iKNukwO/0Vmvk7NbuA==:117 a=BZK4iKNukwO/0Vmvk7NbuA==:17 a=0Bzu9jTXAAAA:8 a=EBOSESyhAAAA:8 a=QH19hYA6h_8A:10 a=_vrviStQAAAA:8 a=Jw0ohAZaAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=NN43bPtMYFlu4SvpHP4A:9 a=j2yMS0QbHQwG8I85:21 a=yInT7xG041DH0g8B:21 a=QEXdDO2ut3YA:10 a=w6aa4Jwq-vKC_84AlzYA:9 X-AUTH: skimble@:2500 In-Reply-To: <87lhdrdnaw.fsf@newcastle.ac.uk> (Phillip Lord's message of "Tue, 04 Aug 2015 17:35:19 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 84.93.230.250 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:106232 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable phillip.lord@newcastle.ac.uk (Phillip Lord) writes: > Sharon Kimble writes: > >> I am having great difficulty in getting "use-package" to work >> successfully. >> >> I have this in my "init.org" - >> >> #+begin_src emacs-lisp >> (use-package fold-this >> :commands (fold-this-all fold-this fold-this-unfold-all) >> :defer 2 >> :init >> :bind (("C-c C-c C-f" . fold-this-all) >> ("C-c C-c C-d" . fold this) >> ("C-c C-c C-c" . fold-this-unfold-all))) >> #+end_src >> >> >> which when it is tangled shows - >> >> =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> =E2=94=82Invalid read syntax: . in wrong context >> =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> >> and using "bug-hunter-file" on my "init.el" shows >> > > > > 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 "-". 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. Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVwQNpAAoJEDaBgBkK+INb8aEQALyXizun78rs9XBKEq1YtGPe YdUNinaIscgelx58TOVOwLsTMJQBAbzaxPfDoeH5Q00SjS7NhvTqol2sRH1WIVYQ rVeFvEiRuxkDLDwPTf7zYh6frhzp809pk6n4Bf3oupjOT8jEpydXfdVaxVayHvZT VMSNdcbJxNWNEnCMTN8JRv5WgvfHbwB1BxF4qXA4o0q7XTcBDwq4Ofp1JGFD2Z9b /VS2SqS20uc4QI4/2gOCU2SuT5MgefjkDgrw8Nt5RZCmZMibd9ESPFVcXS2LLzct DQqn+kYWF1EyvD7BjWjLcd2RBZsj5C2Q3N7U0JUMhcgfsLeSWZbiGqs4GRK5P51o ySD6gZe4W7nFHJQtRc41xDflHbzV3DT9Y4M/Q7QT2benjpNpMMctHeJ/SXL8mb+I PDHxSMPKv+3O/f3tTUa8XmMmuIGyDSpeQL3HE/mO3IHessFOKuc/9BCS+EimEbGC 0MtAa0qP5XvJgGkWhdNFsfi9U1cmRuHP0DRWBmHvjzlcDtaHvI+oTNb8L5lxBSKe CuhE0o2h9cKvOjuwjs+V2YbuxoVYnlWp4XoyK/RACzGvrjquPoy8dcOUl1n4+2Il ZbUqPYE5QnDJoyHWdLLGnPLlqBX4KipX8aFKa2+rPlVHOW9H7i4P/Ch5qA9szX+E dj8jjInR3TXy1iGQ+WTw =xkBH -----END PGP SIGNATURE----- --=-=-=--