diff options
Diffstat (limited to '')
-rw-r--r-- | emacs.d/packages.el | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/emacs.d/packages.el b/emacs.d/packages.el new file mode 100644 index 0000000..e4df87d --- /dev/null +++ b/emacs.d/packages.el @@ -0,0 +1,162 @@ +;;; packages.el --- External packages configured via `use-package' + +;;; Commentary: + +(require 'package) + +;;; Code: +(setq package-archives + (append package-archives + '(("melpa" . "http://melpa.milkbox.net/packages/")) + '(("org" . "http://orgmode.org/elpa/")))) + +(package-initialize) +(setq package-enable-at-startup nil) + +(unless package-archive-contents + (message "Refreshing ELPA package archives...") + (package-refresh-contents)) + +(unless (package-installed-p 'use-package) + (message "`use-package' not found. Installing...") + (package-install 'use-package)) + +(require 'use-package) +(setq use-package-minimum-reported-time 0 + use-package-verbose t) + +(use-package color-theme-sanityinc-tomorrow + :ensure t) + +(use-package diminish + :ensure t + :config + (progn + (eval-after-load "whitespace" '(diminish 'whitespace-mode)))) + +(use-package fill-column-indicator + :ensure t + :defer t + :init + (progn + (add-hook 'prog-mode-hook 'fci-mode))) + +(use-package flycheck + :ensure t + :defer t + :init + (progn + (setq-default fci-rule-column 80) + (add-hook 'prog-mode-hook 'flycheck-mode))) + +(use-package gist + :ensure t + :bind ("C-c g p" . gist-region-or-buffer-private) + :config + (setq gist-view-gist t)) + +(use-package git-commit + :ensure t + :defer t) + +(use-package gitconfig-mode + :ensure t + :defer t) + +(use-package gitignore-mode + :ensure t + :defer t) + +(use-package go-mode + :ensure t + :defer t + :init + (defun go-capitalize-previous-word () + (interactive) + (backward-word) + (capitalize-word 1)) + :config + (progn + (bind-key "C-c C-c" 'go-capitalize-previous-word go-mode-map) + (bind-key "C-c f" 'gofmt go-mode-map) + (bind-key "C-c d" 'godoc go-mode-map))) + +(use-package google-c-style + :ensure t + :defer t) + +(use-package goto-chg + :ensure t + :bind (("C-." . goto-last-change) + ("C-," . goto-last-change-reverse))) + +(use-package magit + :ensure t + :bind ("C-x g" . magit-status) + :config + (progn + (setenv "GIT_PAGER" "") + (setq magit-completing-read-function 'magit-ido-completing-read))) + +(use-package markdown-mode + :ensure t + :mode ("\\.\\(m\\(ark\\)?down\\|md\\)$" . markdown-mode) + :init + (add-hook 'markdown-mode-hook 'spell-check-and-wrap-at-80) + :config + (progn + (let ((preferred-markdown-impl "peg-markdown")) + (when (executable-find preferred-markdown-impl) + (setq markdown-command preferred-markdown-impl))))) + +(use-package mustache-mode + :ensure t + :defer t) + +(use-package projectile + :ensure t + :diminish projectile-mode + :init + (setq projectile-enable-caching t) + :config + (projectile-global-mode)) + +(use-package puppet-mode + :ensure t + :mode ("\\.pp$" . puppet-mode)) + +(use-package rainbow-delimiters + :ensure t + :defer t + :init + (progn + (add-hook 'emacs-lisp-mode-hook #'rainbow-delimiters-mode))) + +(use-package scala-mode2 + :ensure t + :defer t) + +(use-package smartparens + :ensure t + :diminish smartparens-mode + :config + (progn + (require 'smartparens-config) + (smartparens-global-mode 1))) + +(use-package thrift + :ensure t + :defer t) + +(use-package yaml-mode + :ensure t + :defer t) + +(use-package server + :config + (unless (server-running-p) + (server-start))) + +(provide 'packages) + +;;; packages.el ends here |