 (use-package ispell
   :ensure t
   :config
+  (cond
+   ((executable-find "aspell")
+    (setq ispell-program-name "aspell")
+    (setq ispell-extra-args   '("--sug-mode=ultra"
+                                "--lang=en_US")))
+   ((executable-find "hunspell")
+    (setq ispell-program-name "hunspell")
+    (setq ispell-extra-args   '("-d en_US"))))
+
   ;; Switch dictionaries
   (defun fd-switch-dictionary()
     "Binding to switch between dictionaries."

 '(org-agenda-files nil)
 '(package-selected-packages
   (quote
    (company-irony-c-headers flycheck-irony irony-eldoc company-irony intero haskell-mode json-mode hydra cmake-mode emms magit py-autopep8 smartparens rainbow-delimiters yaml-mode wc-mode elpy reverse-theme python-environment popup polymode markdown-mode julia-mode jedi-core jedi ess epc deferred ctable concurrent auto-complete)))
 '(user-full-name "Marc Henry de Frahan"))
(set-face-attribute 'default nil :height 110)


      (ispell-change-dictionary change)
      (message "Dictionary switched from %s to %s" dic change)
      ))

  (use-package flyspell
    :ensure t
