                 ("SConscript"   . python-mode)
                 ("\\.otq$"      . conf-mode) ;one-tick-query files
                 ("\\.bmk$"      . emacs-lisp-mode)
-                ("README\\.md$" . gfm-mode)
                 )
               auto-mode-alist))
 

(use-package folio-mode :mode "\\.folio$"
  :config (use-package folio-electric))

(use-package markdown-mode :mode "\\.md$")
(use-package pos-tip :defer t)
(use-package qt-pro :mode "\\.pro$")
(use-package json-mode

  (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))))
