From 85732a8facbb4971a4e87e0513bd8bff43caf758 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 21 Jul 2015 10:09:02 -0700 Subject: [emacs] a few fixes for emacs. Add configuration for flyspell. Update mode for python (so that it reads aurora files correctly), and mustache (for alerts). --- emacs.d/packages.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/emacs.d/packages.el b/emacs.d/packages.el index 937d726..4530cc7 100644 --- a/emacs.d/packages.el +++ b/emacs.d/packages.el @@ -45,6 +45,17 @@ (add-hook 'prog-mode-hook 'flycheck-mode) (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc)))) +(use-package flyspell + :ensure t + :diminish flyspell-mode "✓" + :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) @@ -106,6 +117,7 @@ (setq markdown-command preferred-markdown-impl))))) (use-package mustache-mode + :mode ("\\.\\(alert\\|mustache\\)$" . mustache-mode) :ensure t :defer t) @@ -121,6 +133,9 @@ :ensure t :mode ("\\.pp$" . puppet-mode)) +(use-package python + :mode ("\\.\\(py\\|aurora\\)$" . python-mode)) + (use-package rainbow-delimiters :ensure t :defer t -- cgit 1.4.1