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: Michael Heerdegen
Subject: Re: About the usage of `with-eval-after-load'.
Date: Sun, 19 Sep 2021 03:50:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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".

Michael.




reply via email to

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