 (use-package folio-mode :mode "\\.folio$"
   :config (use-package folio-electric))
 
-(use-package markdown-mode :mode "\\.md$")
+(use-package markdown-mode
+  :mode ("\\.md$" "\\.markdown$"
+         "LICENSE$" "README$" "INSTALL$" "CONTRIBUTORS$" "COPYING$"
+         ))
 (use-package pos-tip :defer t)
 (use-package qt-pro :mode "\\.pro$")
 (use-package json-mode

  :config
  (setq deft-extensions '("md" "org" "txt"))
  (setq deft-recursive t)
  (setq deft-use-filename-as-title t)
  )

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

  (define-key flyspell-mode-map [?\C-\.] nil)
  (define-key flyspell-mode-map [?\C-\M-i] nil)
  (bind-keys
   :map flyspell-mode-map
   ("C-c \\c" . flyspell-auto-correct-word)
   ("C-c \\a" . flyspell-auto-correct-previous-word)
   ("C-c \\n" . flyspell-goto-next-error)
   ("C-c \\s" . flyspell-correct-word-before-point)
   ("C-c \\w" . ispell-word)
   ("C-c \\b" . flyspell-buffer)
   ("C-c \\r" . flyspell-region)
   )
  (use-package ace-popup-menu :config (ace-popup-menu-mode 1))
  (mapc (lambda (hook) (add-hook hook #'flyspell-mode))
        '(text-mode-hook markdown-mode org-mode))
  ;; (add-hook 'flyspell-mode-hook #'flyspell-popup-auto-correct-mode)
  ;; (defun my/toggle-flyspell() (interactive)
  ;;        (lambda() (flyspell-mode (if flyspell-mode 0 1))))
