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

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

Re: About the usage of `with-eval-after-load'.


From: Hongyi Zhao
Subject: Re: About the usage of `with-eval-after-load'.
Date: Sun, 19 Sep 2021 09:55:57 +0800

On Sun, Sep 19, 2021 at 9:51 AM Michael Heerdegen
<michael_heerdegen@web.de> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > > `macroexpand' your macro call.
> >
> > `C-j' gives the following:
> >
> > (macroexpand
> > '(with-eval-after-load
> >     'python
> >      (progn
> >       (define-key python-mode-map (kbd "C-c TAB") 'hs-toggle-hiding)
> >       (add-to-list
> > 'python-shell-completion-native-disabled-interpreters "jupyter"))
> >
> >     'elpy (pyvenv-activate "~/.pyenv/versions/datasci")))
> > (eval-after-load 'python (lambda nil (progn (define-key
> > python-mode-map ... ...) (add-to-list ... "jupyter")) 'elpy
> > (pyvenv-activate "~/.pyenv/versions/datasci")))
>
> ... which shows that everything ends in one lambda, called after loading
> "python".

So, my usage is wrong.

Best, HZ



reply via email to

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