Created
May 12, 2015 18:57
-
-
Save rynffoll/e9f0f36afc7d91aa2b61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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