[Top][All Lists]

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

The cons syntax format used by use-package.

From: Hongyi Zhao
Subject: The cons syntax format used by use-package.
Date: Sat, 18 Sep 2021 21:15:02 +0800

See here [1] for the Hooks syntax used by use-package, as shown below:

(use-package ace-jump-mode
  :hook ((prog-mode text-mode) . ace-jump-mode))

If I wanted to extend the above example with more hooks, which of the
following would be correct:

(use-package ace-jump-mode
  :hook ((prog-mode text-mode) . ace-jump-mode
             (latex-mode .  ace-jump-mode)))


(use-package ace-jump-mode
  :hook (((prog-mode text-mode) . ace-jump-mode)
             (latex-mode .  ace-jump-mode)))


Assoc. Prof. Hongyi Zhao <>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province

reply via email to

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