Skip to content

Instantly share code, notes, and snippets.

@king6cong
Created November 18, 2015 14:15
Show Gist options
  • Save king6cong/13b0bb54cb2a8e86a71c to your computer and use it in GitHub Desktop.
Save king6cong/13b0bb54cb2a8e86a71c to your computer and use it in GitHub Desktop.
(load "~/repos/toutiao_config/package_list.el")
(if (>= emacs-major-version 24)
(progn
(package-initialize)
(package-refresh-contents)
(when (not (require 'magit nil t))
(package-install 'magit))
(when (not (require 'go-mode nil t))
(package-install 'go-mode))
(when (not (require 'go-eldoc nil t))
(package-install 'go-eldoc))
(when (not (require 'go-playground nil t))
(package-install 'go-playground))
(when (not (require 'go-snippets nil t))
(package-install 'go-snippets))
(when (not (require 'company nil t))
(package-install 'company))
(when (not (require 'flycheck nil t))
(package-install 'flycheck))
(when (not (require 'helm-config nil t))
(package-install 'helm))
(when (not (require 'nose nil t))
(package-install 'nose))
(when (not (require 'web-mode nil t))
(package-install 'web-mode))
(when (not (require 'yasnippet nil t))
(package-install 'yasnippet))
(when (not (require 'thrift nil t))
(package-install 'thrift))
(when (not (require 'gist nil t))
(package-install 'gist))
(when (not (require 'flymake nil t))
(package-install 'flymake))
(when (not (require 'flymake-cursor nil t))
(package-install 'flymake-cursor))
;; (when (not (require 'rainbow-mode nil t))
;; (package-install 'rainbow-mode))
;; (defun all-css-modes() (css-mode)
;; (rainbow-mode))
;; (add-to-list 'auto-mode-alist '("\.css$" . all-css-modes))
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment