Skip to content

Instantly share code, notes, and snippets.

@rynffoll
Created May 12, 2015 18:57
Show Gist options
  • Save rynffoll/e9f0f36afc7d91aa2b61 to your computer and use it in GitHub Desktop.
Save rynffoll/e9f0f36afc7d91aa2b61 to your computer and use it in GitHub Desktop.
;;; ELPA
(require 'package)
(package-initialize)
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.org/packages/")))
(when (not package-archive-contents)
(package-refresh-contents))
(setq packages '(company ;; autocomplete
flycheck ;; syntax checking
))
(dolist (package packages)
(when (not (package-installed-p package))
(package-install package)))
;;; company
(require 'company)
(setq company-minimum-prefix-length 1)
(add-hook 'prog-mode-hook 'company-mode)
(remove-hook 'org-mode-hook 'company-mode)
;;; flycheck
(require 'flycheck)
(setq flycheck-idle-change-delay 2.0)
(setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))
(add-hook 'prog-mode-hook 'flycheck-mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment