Skip to content

Instantly share code, notes, and snippets.

/.emacs Secret

Created February 22, 2018 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/07277117ddcdeb87108e62d2a5804551 to your computer and use it in GitHub Desktop.
Save anonymous/07277117ddcdeb87108e62d2a5804551 to your computer and use it in GitHub Desktop.
(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