unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* packages with use-package
@ 2016-05-02  2:49 Rusi
  0 siblings, 0 replies; only message in thread
From: Rusi @ 2016-05-02  2:49 UTC (permalink / raw)
  To: help-gnu-emacs

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)
	))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-02  2:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-02  2:49 packages with use-package Rusi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).