From 4a6c55b5631aac670359847fe821d27a494993b1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 15 Nov 2015 07:51:50 -0800 Subject: [emacs] delete unused file. --- emacs.d/packages.el | 173 ---------------------------------------------------- 1 file changed, 173 deletions(-) delete mode 100644 emacs.d/packages.el diff --git a/emacs.d/packages.el b/emacs.d/packages.el deleted file mode 100644 index 443a115..0000000 --- a/emacs.d/packages.el +++ /dev/null @@ -1,173 +0,0 @@ -;;; packages.el --- External packages configured via `use-package' - -(require 'package) - -;;; Code: -(setq package-archives - (append package-archives - '(("melpa" . "http://melpa.milkbox.net/packages/")))) - -(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 ag - :ensure t - :defer t) - -(use-package diminish - :ensure t - :config - (progn - (eval-after-load "whitespace" '(diminish 'whitespace-mode)))) - -(use-package flycheck - :ensure t - :defer t - :preface (progn - (defun check-source-predicate () - (and (executable-find "check.pex") - (buffer-file-name) - (string-match "src/source/.*\.py$" (buffer-file-name))))) - :init - (progn - (add-hook 'prog-mode-hook 'flycheck-mode) - (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))) - :config - (progn - (flycheck-define-checker source-check - "A syntax checker for python source code in Source, using `dist.pex'" - :command ("check.pex" source) - ;;; errors are reported like this: - ;;; E241:ERROR : - :error-patterns ((error line-start (1+ nonl) ":ERROR" (1+ nonl) ":" line (message) line-end)) - :predicate check-source-predicate - :modes (python-mode)) - (add-to-list 'flycheck-checkers 'source-check))) - -(use-package flyspell - :ensure t - :defer t - :init - (progn - (setq ispell-program-name "aspell" - ispell-list-command "--list") - (add-hook 'prog-mode-hook 'flyspell-prog-mode) - (add-hook 'text-mode-hook 'turn-on-flyspell))) - -(use-package gist - :ensure t - :bind ("C-c g p" . gist-region-or-buffer-private) - :config - (setq gist-view-gist t)) - -(use-package github-browse-file - :ensure t - :defer t) - -(use-package go-eldoc - :ensure t - :defer t - :init (add-hook 'go-mode-hook 'go-eldoc-setup)) - -(use-package go-mode - :ensure t - :defer t - :config - (progn - (bind-key "C-c C-f" 'gofmt go-mode-map) - (bind-key "C-c h" 'godoc go-mode-map) - (bind-key "C-c C-g" 'go-goto-imports go-mode-map) - (bind-key "C-c C-r" 'go-remove-unused-imports 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" ""))) - -(use-package markdown-mode - :ensure t - :mode ("\\.\\(m\\(ark\\)?down\\|md\\)$" . markdown-mode) - :config - (progn - (let ((preferred-markdown-impl "peg-markdown")) - (when (executable-find preferred-markdown-impl) - (setq markdown-command preferred-markdown-impl))))) - -(use-package mustache-mode - :mode ("\\.\\(alert\\|mustache\\)$" . 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 python - :mode ("\\.\\(py\\|aurora\\)$" . python-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 server - :config - (unless (server-running-p) - (server-start))) - -(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) - -(provide 'packages) - -;;; packages.el ends here -- cgit 1.4.1