unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Combine multiple cdrs into one list for hooks.
@ 2021-09-27  9:14 Hongyi Zhao
  2021-09-27  9:18 ` Hongyi Zhao
  0 siblings, 1 reply; 2+ messages in thread
From: Hongyi Zhao @ 2021-09-27  9:14 UTC (permalink / raw)
  To: help-gnu-emacs

I currently install and configure python-mode with use-package as follows:

(use-package python-mode
  :hook
  (python-mode . pyvenv-mode)
  (python-mode . try/pyvenv-workon)
  (python-mode . flycheck-mode)
  (python-mode . company-mode)
  (python-mode . yas-minor-mode))

I want to simplify the above multiple hook cons directives by
combination the multiple cdrs into one list. Are there any tips for
achieving this goal?

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Combine multiple cdrs into one list for hooks.
  2021-09-27  9:14 Combine multiple cdrs into one list for hooks Hongyi Zhao
@ 2021-09-27  9:18 ` Hongyi Zhao
  0 siblings, 0 replies; 2+ messages in thread
From: Hongyi Zhao @ 2021-09-27  9:18 UTC (permalink / raw)
  To: help-gnu-emacs

On Mon, Sep 27, 2021 at 5:14 PM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> I currently install and configure python-mode with use-package as follows:
>
> (use-package python-mode
>   :hook
>   (python-mode . pyvenv-mode)
>   (python-mode . try/pyvenv-workon)
>   (python-mode . flycheck-mode)
>   (python-mode . company-mode)
>   (python-mode . yas-minor-mode))
>
> I want to simplify the above multiple hook cons directives by
> combination the multiple cdrs into one list. Are there any tips for
> achieving this goal?

I've done some tries, as discussed here [1], but failed to do the trick.

[1] https://github.com/jwiegley/use-package/issues/954

Best, HZ



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-27  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-27  9:14 Combine multiple cdrs into one list for hooks Hongyi Zhao
2021-09-27  9:18 ` Hongyi Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).