diff options
author | Franck Cuny <franckcuny@gmail.com> | 2015-07-21 10:09:02 -0700 |
---|---|---|
committer | Franck Cuny <franckcuny@gmail.com> | 2015-07-21 10:09:02 -0700 |
commit | 85732a8facbb4971a4e87e0513bd8bff43caf758 (patch) | |
tree | c697239f7a45b203c235ba7b918616fd4b30d90a | |
parent | [tmux] remove some bindings, use default instead. (diff) | |
download | emacs.d-85732a8facbb4971a4e87e0513bd8bff43caf758.tar.gz |
[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).
-rw-r--r-- | emacs.d/packages.el | 15 |
1 files changed, 15 insertions, 0 deletions
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 |