   "Configure org mode after loading it"
   (setq org-adapt-indentation nil
 	org-hide-leading-stars t)
-  (visual-line-mode t)
-  (set-mark-command nil))
+  (visual-line-mode t))
 
 ;;;###autoload
 (defun danylo/org-font-setup ()

;;;###autoload
(define-minor-mode danylo/latex-font-lock-mode
  "LaTeX equation font locking."
  :lighter " latex-highlight"
  ;; Highlight $...$ and $$...$$
  (font-lock-add-keywords
   nil `((,(concat "\\(?:\\$\\$?\\)"
		   "\\(\\(?:[^$]*\n\\)*?[^$]*\\)"
		   "\\(?:\\$?\\$\\)")
	  (0 'danylo/latex-equation-face-main t))
	 (,(format "\\(\\$\\)" arg)
	  (0 'danylo/latex-equation-face-faded t))))
  ;; Highlight \begin{...}...\end{...}
  (mapcar
   (lambda (arg)
     (font-lock-add-keywords
      nil `((,(concat "\\(?:\\\\begin{" arg "[\\*]?}\\)"
		      "\\(\\(?:.*\n\\)*?.*\\)"
		      "\\(?:\\\\end{" arg "[\\*]?}\\)")
	     (0 'danylo/latex-equation-face-main t))
	    (,(format "\\(\\\\begin{%s[\\*]?}\\)" arg)
	     (0 'danylo/latex-equation-face-faded t))
	    (,(format "\\(\\\\end{%s[\\*]?}\\)" arg)
	     (0 'danylo/latex-equation-face-faded t)))))
   '("equation" "align" "alignat" "gather"
     "subequations" "multline" "optimization"))
  ;; Enable multiline fontification
  (set (make-local-variable 'font-lock-multiline) t))


(defcustom danylo/latex-preview-scale 1.3
  "Size of the latex preview in Org mode."
  :type 'float
  :group 'danylo)

(defface danylo/latex-equation-face-faded
