   (setq org-format-latex-options (plist-put org-format-latex-options
 					    :scale `,danylo/latex-preview-scale)
 	org-format-latex-options (plist-put org-format-latex-options
-					    :foreground "yellow")))
+					    :foreground `,danylo/yellow)))
 
 ;;;###autoload
 (defun danylo/org-mode-font ()


;;;###autoload
(define-minor-mode danylo/latex-font-lock-mode
  "LaTeX equation font locking.
Inspired from: http://makble.com/emacs-font-lock-how-to-highlight-multiline-text"
  :lighter " danylo-latex-highlight"
  (make-variable-buffer-local 'font-lock-extra-managed-props)
  (add-to-list 'font-lock-extra-managed-props 'invisible)
  (mapcar
   (lambda (arg)
     (font-lock-add-keywords
      nil `((,(format "\\(%s\\)\\(?:.\\|\n\\)*?\\(%s\\)"
		      (car arg) (cdr arg))
	     (0 '(face danylo/latex-equation-face-main invisible nil) t)
	     (1 '(face danylo/latex-equation-face-faded invisible nil) t)
	     (2 '(face danylo/latex-equation-face-faded invisible nil) t)))))
   `(("\\$" . "\\$")
     ("\\$\\$" . "\\$\\$")
     ("\\\\begin{equation[\\*]?}" . "\\\\end{equation[\\*]?}")

  :init (setq whitespace-line-column fill-column
	      whitespace-style '(face lines-tail))
  ;; Face style for overflowing characters
  (add-hook 'whitespace-mode-hook
	    (lambda ()
	      (set-face-attribute 'whitespace-line nil
				  :foreground `,danylo/yellow
				  :background nil
				  :bold t)))
  :config
  (global-whitespace-mode +1))

