 	   (flyspell-mode +1)
 	   (flyspell-buffer))))
 
-(general-define-key
- "C-x c s" 'danylo/toggle-spellcheck)
+(add-hook 'flyspell-mode-hook
+	  (lambda ()
+	    (set-face-attribute 'flyspell-incorrect nil
+				:underline `,danylo/red)
+	    (set-face-attribute 'flyspell-duplicate nil
+				:underline `,danylo/yellow)))
 
 ;;; ..:: Completion ::..
 

  :init
  (setq flycheck-enabled-checkers '(c/c++-gcc)
	flycheck-check-syntax-automatically '(mode-enabled save)
	flycheck-display-errors-delay 0.1))

;;;###autoload
(defun danylo/toggle-spellcheck ()

  :bind (:map LaTeX-mode-map
	      ("C-c i w" . ispell-word)
	      ("C-x C-<backspace>" . electric-pair-delete-pair)
	      ("C-c f e" . danylo/org-emphasize-equation)
	      ("C-x c s" . danylo/toggle-spellcheck))
  :config
  (require 'latex)
  ;; Shell-escape compilation
