-
-
Save anonymous/07277117ddcdeb87108e62d2a5804551 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
(setq package-archives | |
'(("gnu" . "http://elpa.gnu.org/packages/") | |
("marmalade" . "http://marmalade-repo.org/packages/") | |
("melpa" . "https://melpa.org/packages/") | |
("elpa" . "http://tromey.com/elpa/"))) | |
(require 'package) | |
(package-initialize) | |
(defvar package-list) | |
(setq package-list '( | |
flycheck | |
flycheck-clang-analyzer | |
)) | |
(unless package-archive-contents | |
(package-refresh-contents)) | |
(dolist (package package-list) | |
(unless (package-installed-p package) | |
(package-install package))) | |
(global-flycheck-mode) | |
(with-eval-after-load 'flycheck | |
(require 'flycheck-clang-analyzer) | |
(setq flycheck-clang-analyzer-executable "/usr/lib/llvm/5/bin/clang") | |
(flycheck-clang-analyzer-setup)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment