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

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

Re: using use-package


From: Phillip Lord
Subject: Re: using use-package
Date: Tue, 04 Aug 2015 17:35:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Sharon Kimble <boudiccas@skimble.plus.com> 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.



reply via email to

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