help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using use-package


From: Sharon Kimble
Subject: Re: using use-package
Date: Tue, 04 Aug 2015 19:24:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5.50 (gnu/linux)

address@hidden (Phillip Lord) writes:

> Sharon Kimble <address@hidden> 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 -
>>
>> ╭────
>> │Invalid read syntax: . in wrong context
>> ╰────
>>
>> 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.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.3

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]