From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorge Araya Navarro Newsgroups: gmane.emacs.help Subject: Re: How to Port Setup to Different OS? Date: Wed, 05 Nov 2014 20:40:09 -0600 Message-ID: <87d291kpfd.fsf@deshackra.com> References: <20cfbb69-0044-4f3f-ac98-0c3327d92978@googlegroups.com> <545AB201.9080803@knight.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1415242604 12340 80.91.229.3 (6 Nov 2014 02:56:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2014 02:56:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 03:56:40 2014 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 1XmDFW-0001rU-3i for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2014 03:56:38 +0100 Original-Received: from localhost ([::1]:49606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmDFV-0004Q6-Mr for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 21:56:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmDFF-0004Ow-To for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 21:56:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmDFB-0005Zp-B5 for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 21:56:21 -0500 Original-Received: from shared.dohost.biz ([188.165.91.212]:40136 helo=shared.dohost.us) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmDFB-0005YZ-5M for help-gnu-emacs@gnu.org; Wed, 05 Nov 2014 21:56:17 -0500 Original-Received: from [186.32.204.169] (port=37820 helo=abril.local.local) by shared.dohost.us with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XmDF6-0002W4-05 for help-gnu-emacs@gnu.org; Thu, 06 Nov 2014 02:56:13 +0000 In-reply-to: <545AB201.9080803@knight.cx> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shared.dohost.us X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - deshackra.com X-Get-Message-Sender-Via: shared.dohost.us: authenticated_id: elcorreo@deshackra.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 188.165.91.212 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:100783 Archived-At: I actually generate a list of packages using a Python script inside a org source code block, resulting in a .el file that is later loaded by Emacs. You can take a look at my conf here[1], and the resulting file here[2] I use this to same some time making my list of dependencies. [1]: https://bitbucket.org/shackra/.emacs.d/src/c70ac0056202654c21ecf102ab6a1bbb9a103a5a/emacs-init.org?at=master#cl-91 [2]: https://bitbucket.org/shackra/.emacs.d/src/c70ac0056202654c21ecf102ab6a1bbb9a103a5a/paquetes.el?at=master Steven Knight writes: > Hello Ari, > > I suggest use-package[1]. Here's how you would use it: > > ; require package, update 'package-archives > (require 'package) > (add-to-list 'package-archives > '("melpa" . "http://melpa.org/packages/") t) > (package-refresh-contents) > (package-initialize) > > ; install use-package if necessary > (unless (package-installed-p 'use-package) > (package-install 'use-package)) > > ; load use-package > (require 'use-package) > > ; install (if necessary) dash, better-defaults and web-mode > (use-package dash :ensure dash) > (use-package better-defaults :ensure better-defaults) > (use-package web-mode :ensure web-mode) > > The ":ensure" option tells use-package to install the package if > necessary [2]. > > Thank you, > > [1] https://github.com/jwiegley/use-package > [2] https://github.com/jwiegley/use-package#for-packageel-users -- Pax et bonum. Jorge Araya Navarro. ES: DiseƱador Publicitario, Programador Python y colaborador en Parabola GNU/Linux-libre EN: Ads Designer, Python programmer and contributor Parabola GNU/Linux-libre EO: Anonco grafikisto, Pitino programalingvo programisto kai kontribuanto en Parabola GNU/Linux-libre https://es.gravatar.com/shackra