From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chunyang Xu Newsgroups: gmane.emacs.help Subject: Re: using use-package Date: Tue, 4 Aug 2015 23:46:19 +0800 Message-ID: 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 1438703354 5469 80.91.229.3 (4 Aug 2015 15:49:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2015 15:49:14 +0000 (UTC) Cc: Emacs To: Sharon Kimble Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 04 17:49:00 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 1ZMeSW-0002si-QK for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2015 17:48:56 +0200 Original-Received: from localhost ([::1]:35920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMeSW-0007Bo-6c for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2015 11:48:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMeQe-0004qb-1W for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 11:47:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMeQa-00004w-Az for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 11:46:59 -0400 Original-Received: from ix.databoost.com ([173.14.93.250]:51205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMeQa-0008VC-4b for help-gnu-emacs@gnu.org; Tue, 04 Aug 2015 11:46:56 -0400 Original-Received: from mail-la0-f47.google.com (mail-la0-f47.google.com [209.85.215.47]) by ix.databoost.com (Postfix) with ESMTPSA id 7412F24B594E for ; Tue, 4 Aug 2015 08:46:21 -0700 (PDT) Original-Received: by lady2 with SMTP id y2so6287502lad.0 for ; Tue, 04 Aug 2015 08:46:19 -0700 (PDT) X-Received: by 10.112.142.105 with SMTP id rv9mr4199621lbb.11.1438703179414; Tue, 04 Aug 2015 08:46:19 -0700 (PDT) Original-Received: by 10.25.42.136 with HTTP; Tue, 4 Aug 2015 08:46:19 -0700 (PDT) In-Reply-To: <878u9rxflg.fsf@skimble.plus.com> X-detected-operating-system: by eggs.gnu.org: iOS iPhone or iPad X-Received-From: 173.14.93.250 X-Mailman-Approved-At: Tue, 04 Aug 2015 11:48:26 -0400 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:106230 Archived-At: On Tue, Aug 4, 2015 at 11:01 PM, Sharon Kimble wrote: > I am having great difficulty in getting "use-package" to work > successfully. > > I have this in my "init.org" - > --8<---------------cut here---------------start------------->8--- > #+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 > --8<---------------cut here---------------end--------------->8--- > A dash ("-") is missing between "fold" and "this" in your second bind. > 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 > > --8<---------------cut here---------------start------------->8--- > "/home/boudiccas/.emacs.d/org/init.el", line 8029 pos 0: > There's a . in wrong context on this position, and that is not valid el= isp syntax. > --8<---------------cut here---------------end--------------->8--- > > But I've looked at https://github.com/jwiegley/use-package and laid it > out according to that page, but its still failing, and I don't > understand why. I'm obviously missing something in my understanding, but > why is it still failing, and how do I get it to run properly please? > > Thanks > Sharon. > -- > 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