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 17:35:19 +0100 Message-ID: <87lhdrdnaw.fsf@newcastle.ac.uk> References: <878u9rxflg.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438706159 20203 80.91.229.3 (4 Aug 2015 16:35:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2015 16:35:59 +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 18:35:52 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 1ZMfBu-0006JR-9A for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2015 18:35:50 +0200 Original-Received: from localhost ([::1]:36381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMfBt-0001vM-RG for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2015 12:35:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMfBV-0001vE-4r for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 12:35:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMfBR-0000JS-TD for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 12:35:25 -0400 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:51766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMfBR-0000JJ-NF for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 12:35:21 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1ZMfBP-0001n6-Ch; Tue, 04 Aug 2015 17:35:19 +0100 Original-Received: from jangai.ncl.ac.uk ([10.66.67.223] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1ZMfBP-0002ig-QG; Tue, 04 Aug 2015 17:35:19 +0100 In-Reply-To: <878u9rxflg.fsf@skimble.plus.com> (Sharon Kimble's message of "Tue, 4 Aug 2015 16:01:31 +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.12 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:106231 Archived-At: 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.