Update packages

Update `package-archive` to contain melpa and melpa-stable, but remove the org
archive.

By `let`-ing `package--builtins` to `nil`, a newer version of Org-mode gets
installed.

Added the following packages:
  - clj-refactor
  - erlang
  - helm-ag
  - helm-dash
  - org-ref
  - which-key

The package `reveal-in-osx-finder' is also added, but only for Mac OS X.
This commit is contained in:
Lars Tveito 2017-06-11 13:30:21 +02:00
parent fb5ae52c07
commit ef21fdc7ec

View File

@ -146,11 +146,8 @@
archive and is well maintained. archive and is well maintained.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq package-archives (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
'(("gnu" . "http://elpa.gnu.org/packages/") (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/"))
("org" . "http://orgmode.org/elpa/")
("melpa" . "https://melpa.org/packages/")
("melpa-stable" . "https://stable.melpa.org/packages/")))
(add-to-list 'package-pinned-packages '(cider . "melpa-stable") t) (add-to-list 'package-pinned-packages '(cider . "melpa-stable") t)
#+END_SRC #+END_SRC
@ -159,13 +156,16 @@
installed. To ensure we install missing packages if they are missing. installed. To ensure we install missing packages if they are missing.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(let* ((packages (let* ((package--builtins nil)
(packages
'(auto-compile ; automatically compile Emacs Lisp libraries '(auto-compile ; automatically compile Emacs Lisp libraries
cider ; Clojure Interactive Development Environment cider ; Clojure Interactive Development Environment
clj-refactor ; A collection of clojure refactoring functions
company ; Modular text completion framework company ; Modular text completion framework
define-word ; display the definition of word at point define-word ; display the definition of word at point
diminish ; Diminished modes from modeline diminish ; Diminished modes from modeline
drag-stuff ; Drag stuff around in Emacs drag-stuff ; Drag stuff around in Emacs
erlang ; Erlang major mode
expand-region ; Increase selected region by semantic units expand-region ; Increase selected region by semantic units
focus ; Dim color of text in surrounding sections focus ; Dim color of text in surrounding sections
idle-require ; load elisp libraries while Emacs is idle idle-require ; load elisp libraries while Emacs is idle
@ -174,7 +174,9 @@
golden-ratio ; Automatic resizing windows to golden ratio golden-ratio ; Automatic resizing windows to golden ratio
haskell-mode ; A Haskell editing mode haskell-mode ; A Haskell editing mode
helm ; Incremental and narrowing framework helm ; Incremental and narrowing framework
helm-ag ; the silver searcher with helm interface
helm-company ; Helm interface for company-mode helm-company ; Helm interface for company-mode
helm-dash ; Offline documentation using Dash docsets.
helm-projectile ; Helm integration for Projectile helm-projectile ; Helm integration for Projectile
helm-swoop ; Efficiently hopping squeezed lines helm-swoop ; Efficiently hopping squeezed lines
jedi ; Python auto-completion for Emacs jedi ; Python auto-completion for Emacs
@ -187,19 +189,22 @@
multiple-cursors ; Multiple cursors for Emacs multiple-cursors ; Multiple cursors for Emacs
olivetti ; Minor mode for a nice writing environment olivetti ; Minor mode for a nice writing environment
org ; Outline-based notes management and organizer org ; Outline-based notes management and organizer
org-ref ; citations bibliographies in org-mode
paredit ; minor mode for editing parentheses paredit ; minor mode for editing parentheses
pdf-tools ; Emacs support library for PDF files pdf-tools ; Emacs support library for PDF files
projectile ; Manage and navigate projects in Emacs easily projectile ; Manage and navigate projects in Emacs easily
slime ; Superior Lisp Interaction Mode for Emacs slime ; Superior Lisp Interaction Mode for Emacs
try)) ; Try out Emacs packages try ; Try out Emacs packages
;; Remove all packages already installed which-key))) ; Display available keybindings in popup
(packages (remove-if 'package-installed-p packages))) (ignore-errors ;; This package is only relevant for Mac OS X.
(when packages (when (memq window-system '(mac ns))
(ignore-errors (package-refresh-contents) (add-to-list 'packages 'exec-path-from-shell)
(mapcar 'package-install packages) (add-to-list 'packages 'reveal-in-osx-finder 'exec-path-from-shell))
;; This package is only relevant for Mac OS X. (let ((packages (remove-if 'package-installed-p packages)))
(when (memq window-system '(mac ns)) (when packages
(package-install 'exec-path-from-shell))))) ;; Install uninstalled packages
(package-refresh-contents)
(mapc 'package-install packages)))))
#+END_SRC #+END_SRC
** Mac OS X ** Mac OS X