all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Adding document strings to a `use-package' declaration
@ 2017-02-18 11:30 Narendra Joshi
  2017-02-20 13:03 ` Andy Moreton
  0 siblings, 1 reply; 3+ messages in thread
From: Narendra Joshi @ 2017-02-18 11:30 UTC (permalink / raw)
  To: Gnu Emacs Help


Hi,

Is it possible to add an extra keyword to a `use-package' declaration?

For example, I would like to a small comment to a use-package
declaration. I can add it as a comment above the declaration. I find
adding a extra keyword, say :meta or :doc, cleaner.

,----
| (use-package which-key
|   :doc "Get quick Emacs key binding suggestions."
|   :ensure t
|   :init
|   (setq which-key-max-description-length nil)
|   (which-key-mode 1))
`----

-- 
Narendra Joshi



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

end of thread, other threads:[~2017-02-20 14:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-18 11:30 Adding document strings to a `use-package' declaration Narendra Joshi
2017-02-20 13:03 ` Andy Moreton
2017-02-20 14:01   ` Narendra Joshi

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.