From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.help Subject: Re: Adding document strings to a `use-package' declaration Date: Mon, 20 Feb 2017 13:03:40 +0000 Message-ID: References: <87lgt3enyc.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487595951 22895 195.159.176.226 (20 Feb 2017 13:05:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Feb 2017 13:05:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (windows-nt) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 20 14:05:39 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfneq-0004rc-R3 for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Feb 2017 14:05:36 +0100 Original-Received: from localhost ([::1]:38398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfnew-0003o0-Jo for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Feb 2017 08:05:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfndG-0003Eq-Uw for help-gnu-emacs@gnu.org; Mon, 20 Feb 2017 08:03:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfndD-0000MB-Sh for help-gnu-emacs@gnu.org; Mon, 20 Feb 2017 08:03:58 -0500 Original-Received: from [195.159.176.226] (port=51115 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfndD-0000Lr-M4 for help-gnu-emacs@gnu.org; Mon, 20 Feb 2017 08:03:55 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cfnd2-0004CA-Kg for help-gnu-emacs@gnu.org; Mon, 20 Feb 2017 14:03:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:itfA5snylKkmg6DnjmZLxia3o0A= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112350 Archived-At: On Sat 18 Feb 2017, Narendra Joshi wrote: > 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)) > `---- See README.md from https://github.com/jwiegley/use-package for details of how to do this. AndyM