summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-02-16 14:30:46 -0800
committerFranck Cuny <fcuny@twitter.com>2019-02-16 14:30:46 -0800
commit305224ff8fa05eaca5c6978d403ceafc9691b28f (patch)
treeb54545b8352961fca24c8753c9f3609a84de33b6
parent[Emacs] Remove extra empty line. (diff)
downloademacs.d-305224ff8fa05eaca5c6978d403ceafc9691b28f.tar.gz
[Emacs] Ensure we load flycheck and flyspell.
-rw-r--r--emacs.d/custom/fcuny-edit.el2
-rw-r--r--emacs.d/custom/fcuny-go.el2
-rw-r--r--emacs.d/custom/fcuny-lisp.el1
-rw-r--r--emacs.d/custom/fcuny-make.el1
-rw-r--r--emacs.d/custom/fcuny-python.el1
-rw-r--r--emacs.d/custom/fcuny-shell.el1
6 files changed, 6 insertions, 2 deletions
diff --git a/emacs.d/custom/fcuny-edit.el b/emacs.d/custom/fcuny-edit.el
index 5df8196..67cffdc 100644
--- a/emacs.d/custom/fcuny-edit.el
+++ b/emacs.d/custom/fcuny-edit.el
@@ -12,7 +12,7 @@
 
 (use-package electric-pair-mode
   :commands electric-pair-mode
-  :init (add-hook 'prog-mode-hook 'electric-pair-mode))
+  :hook (prog-mode . electric-pair-mode))
 
 (use-package paren
   :ensure t
diff --git a/emacs.d/custom/fcuny-go.el b/emacs.d/custom/fcuny-go.el
index 3926c9e..905a12f 100644
--- a/emacs.d/custom/fcuny-go.el
+++ b/emacs.d/custom/fcuny-go.el
@@ -1,6 +1,6 @@
 (use-package go-mode
   :ensure t
-  :after (exec-path-from-shell)
+  :after (exec-path-from-shell flycheck flyspell)
   :hook (go-mode . fcuny/go-mode-setup)
   :init
   (defun fcuny/go-mode-setup ()
diff --git a/emacs.d/custom/fcuny-lisp.el b/emacs.d/custom/fcuny-lisp.el
index 08d55a4..70a0b6c 100644
--- a/emacs.d/custom/fcuny-lisp.el
+++ b/emacs.d/custom/fcuny-lisp.el
@@ -1,4 +1,5 @@
 (use-package lisp-mode
+  :after (flycheck flyspell)
   :bind
   (("C-c C-e" . eval-buffer)
    ("C-c C-r" . eval-region)))
diff --git a/emacs.d/custom/fcuny-make.el b/emacs.d/custom/fcuny-make.el
index a031c46..2479f62 100644
--- a/emacs.d/custom/fcuny-make.el
+++ b/emacs.d/custom/fcuny-make.el
@@ -1,4 +1,5 @@
 (use-package make-mode
+  :after (flycheck flyspell)
   :config
   (add-hook 'makefile-mode-hook (lambda () (setq-local tab-width 2))))
 
diff --git a/emacs.d/custom/fcuny-python.el b/emacs.d/custom/fcuny-python.el
index a12c477..b5fbcba 100644
--- a/emacs.d/custom/fcuny-python.el
+++ b/emacs.d/custom/fcuny-python.el
@@ -1,4 +1,5 @@
 (use-package python
+  :after (flycheck flyspell)
   :mode (("\\.py$"   . python-mode)
          ("BUILD\\'" . python-mode))
   :commands python-mode
diff --git a/emacs.d/custom/fcuny-shell.el b/emacs.d/custom/fcuny-shell.el
index 5d41f92..b5de9c0 100644
--- a/emacs.d/custom/fcuny-shell.el
+++ b/emacs.d/custom/fcuny-shell.el
@@ -1,4 +1,5 @@
 (use-package sh-script
+  :after (flyspell flycheck)
   :mode ("bashrc" . sh-mode)
   :hook (after-save . executable-make-buffer-file-executable-if-script-p)
   :config