From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: using use-package Date: Mon, 10 Aug 2015 05:14:46 -0700 (PDT) Message-ID: References: <20150805055619.13567.17B26335@ahiker.mooo.com> <17131863-cbb8-4a85-8470-490fe9a0c0d4@googlegroups.com> <66dceb24-5fef-4316-8c8b-e9a3e62b0fb8@googlegroups.com> <3594e2c6-bd02-412f-98df-9dd0f145277a@googlegroups.com> <01b4d996-aad3-44ff-a580-7950b25b7dc8@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1439208930 7611 80.91.229.3 (10 Aug 2015 12:15:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2015 12:15:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 10 14:15:30 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZOlzD-0005dS-0L for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Aug 2015 14:15:27 +0200 Original-Received: from localhost ([::1]:58028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOlzC-00089h-91 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Aug 2015 08:15:26 -0400 X-Received: by 10.107.15.18 with SMTP id x18mr20209992ioi.28.1439208887010; Mon, 10 Aug 2015 05:14:47 -0700 (PDT) X-Received: by 10.50.78.105 with SMTP id a9mr128795igx.1.1439208886989; Mon, 10 Aug 2015 05:14:46 -0700 (PDT) Original-Path: usenet.stanford.edu!se8no1399203igc.0!news-out.google.com!nt1ni4430igb.0!nntp.google.com!se8no1399199igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=61.1.39.125; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 61.1.39.125 User-Agent: G2/1.0 Injection-Date: Mon, 10 Aug 2015 12:14:47 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:214152 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106436 Archived-At: On Monday, August 10, 2015 at 3:22:28 PM UTC+5:30, Phillip Lord wrote: > Stefan Monnier writes: > > >> Putting in the core is rather some distance from promoting as the "one > >> true way" > > > > FWIW, lots of use-package is designed to work around flaws in packages. > > > > E.g. the :load-path thingy should never be necessary since the package's > > own autoloads should already take care of that. > > You are correct about the :load-path thingy, although I use this for my > own packages which I run "straight from source" as it where, rather than > install as a ELPA package proper. > > > > Or to take another example from https://github.com/jwiegley/use-package: > > > > (use-package foo > > :init > > (setq foo-variable t) > > :config > > (foo-mode 1)) > > > > For any properly written foo-mode, the above can be replaced with > > > > (setq foo-variable t) > > (foo-mode 1) > > > > and it should work just as well. > > > No, you are missing (several) points of use-package. First (and > trivially) the use-package statement groups everything syntactically. > So, it's more like: > > (progn > (setq foo-variable t) > (foo-mode 1)) > > This is nicer because it groups all the configuration together, so you > can move, comment, delete or eval it all together. Of course, `progn' > achieves the same thing. Yeah :disabled is so much neater than commenting out/deleting/moving large blocks of code Likewise (use-package foo ... ) is like a docstring ie the '...' is docstringed by the foo