~edwargix/emacs.d

a3e31a11ac0dd2ae5b52fe2f184ffb2df4478fe9 — David Florness 9 years ago 8f79711
Check for gnutls when adding melpa package archive

This is identical to the installation code on
[melpa.org](http://melpa.org/#/getting-started) without the part for
compatibility for emacs < 24
1 files changed, 4 insertions(+), 3 deletions(-)

M init.el
M init.el => init.el +4 -3
@@ 37,9 37,10 @@
(require 'package)

;;; Add melpa archives
(add-to-list 'package-archives
	     '("melpa" . "https://melpa.org/packages/")
	     t)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
                    (not (gnutls-available-p))))
       (url (concat (if no-ssl "http" "https") "://melpa.org/packages/")))
  (add-to-list 'package-archives (cons "melpa" url) t))

;;; Load and activate lisp packages
(package-initialize)