Skip to content

Instantly share code, notes, and snippets.

@nega0
Created February 24, 2019 15:27
Show Gist options
  • Save nega0/9ed406cc917a87db33c6dc6882dcc553 to your computer and use it in GitHub Desktop.
Save nega0/9ed406cc917a87db33c6dc6882dcc553 to your computer and use it in GitHub Desktop.
minimal init.el w/ package.el initialization and tramp
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize)
;; Bootstrap 'use-package'
(eval-after-load 'gnutls
'(add-to-list 'gnutls-trustfiles "/etc/ssl/cert.pem"))
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(require 'bind-key)
(setq use-package-always-ensure t)
(use-package tramp
:ensure nil
:config
(tramp-default-method "ssh"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment