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:16:49 +0800

On Sun, Sep 19, 2021 at 8:17 AM Michael Heerdegen
<michael_heerdegen@web.de> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > Is there anything wrong with my understanding of this macro? Any hints
> > will be helpful.
>
> `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")))

Best, HZ



reply via email to

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