From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: packages with use-package Date: Sun, 1 May 2016 19:49:07 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1464882068 24221 80.91.229.3 (2 Jun 2016 15:41:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2016 15:41:08 +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 Jun 02 17:41:08 2016 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 1b8Uk7-0002hM-2V for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jun 2016 17:41:07 +0200 Original-Received: from localhost ([::1]:48095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8Uk6-0003ku-3B for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jun 2016 11:41:06 -0400 X-Received: by 10.182.39.4 with SMTP id l4mr22555340obk.29.1462157347984; Sun, 01 May 2016 19:49:07 -0700 (PDT) X-Received: by 10.50.150.5 with SMTP id ue5mr291531igb.5.1462157347959; Sun, 01 May 2016 19:49:07 -0700 (PDT) Original-Path: usenet.stanford.edu!sq19no1309814igc.0!news-out.google.com!k10ni355igv.0!nntp.google.com!i5no1481201ige.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=61.1.37.201; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 61.1.37.201 User-Agent: G2/1.0 Injection-Date: Mon, 02 May 2016 02:49:07 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:217582 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:110199 Archived-At: Thanks to https://github.com/mwfogleman/config/blob/master/home/.emacs.d/michael.org I finally got use-=package to work with with emacs packages. Just wondering if this is the right approach -- specifically the bootstrap process. Comments/suggestions appreciated! Selected contents of ~/.emacs.d/init.el --------------------------------------- ;; Bootstrap package system! (package-initialize) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) (setq load-prefer-newer t) (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)) (require 'use-package) ;; Bootstrap package system done! ;; Typical usage: (use-package csharp-mode :ensure t :mode ("\\.cs\\'" . csharp-mode) :interpreter ("csharp" . csharp-mode)) ;; a builtin package usage (use-package recentf :config (setq recentf-save-file "~/.emacs.d/recentfiles" recentf-exclude '("COMMIT_EDITMSG" "org-clock-save.el")) (add-to-list 'recentf-arrange-rules '(("Org files (%d)" ".\\.org\\'"))) (recentf-mode 1)) ;;org mode is best managed outside the package system with git ;; also my setups are too big so farmed out (use-package org-mode :load-path "~/pdsw/org-mode/lisp" :init (load-file "~/orghacks/orgsetups.el")) ;; And so on (use-package haskell-mode :ensure t :bind (:map haskell-mode-map ("C-x C-d" . nil) ("C-c C-z" . haskell-interactive-switch) ("C-c C-l" . haskell-process-load-file) ("C-c C-b" . haskell-interactive-switch) ("C-c C-t" . haskell-process-do-type) ("C-c C-i" . haskell-process-do-info) ("C-c M-." . nil) ("C-c C-d" . nil) ))