Accepts one or more forms, up to the next keyword.
(use-package foo
:init
(setq foo-variable t))
(use-package foo
:config
(foo-mode 1))
(use-package comint
:custom
(comint-buffer-maximum-size 20000 "Increase comint buffer size.")
(comint-prompt-read-only t "Make the prompt read only."))
Takes either a cons or a list of conses.
(use-package helm
:bind (("M-x" . helm-M-x)
("M-<f5>" . helm-find-files)
([f10] . helm-buffers-list)
([S-f10] . helm-recentf)))
(use-package helm
:bind (:map helm-command-map
("C-c h" . helm-execute-persistent-action)))
(use-package ace-jump-mode
:hook prog-mode)
(use-package ace-jump-mode
:hook (prog-mode text-mode))
(use-package foo
:disabled)
Forces immediate loading even with :bind
.
(use-package foo
:demand t)
(use-package jinja2-mode
:mode "\\.js2")
(use-package yaml-mode
:mode (("\\.yaml\\'" . yaml-mode)
("\\.yml\\'" . yaml-mode)))