   (setq TeX-auto-save t
         TeX-parse-self t
         reftex-plug-into-AUCTeX t)
+
+  (with-eval-after-load 'company
+    (use-package company-auctex
+      :config (company-auctex-init))
+    (use-package company-math
+      :config
+      (add-to-list 'company-backends
+                   'company-math-symbols-unicode)))
+  (use-package cdlatex)
+  (use-package latex-preview-pane)
   
-  (use-package latex-preview-pane)
-  (use-package cdlatex)
-  (use-package ac-math)
-
-  (eval-after-load "auto-complete"
-    '(progn (add-to-list 'ac-modes 'latex-mode)
-            (use-package auto-complete-auctex)))
-
   (add-hook 'LaTeX-mode-hook
             (lambda ()
               (visual-line-mode 1)
-              (TeX-PDF-mode 1) ;; ???
               ;; (flyspell-mode 1) ???
+              (LaTeX-math-mode 1)
+              (turn-on-reftex)
+              (turn-on-cdlatex)
               (latex-preview-pane-enable)
+              (TeX-PDF-mode 1)
               (push
-               ;; notes on ~/.latexmkrc for SyncTeX setup
-               ;; notes about skim preference settings
                '("latexmk" "latexmk -pdf %s" TeX-run-TeX nil t
                  :help "Run latexmk on file")
                TeX-command-list)
-              (server-start)
               (setq TeX-command-default "latexmk")
-              (turn-on-reftex)
-              (LaTeX-math-mode 1)
-              (turn-on-cdlatex)
-              (setq ac-sources
-                    (append '(ac-source-math-unicode
-                              ac-source-math-latex
-                              ac-source-latex-commands)
-                            ac-sources))))
+              (server-start)))
 
   (when (eq system-type 'darwin)
     (setq TeX-view-program-selection

	     try-expand-line
	     try-expand-line-all-buffers
	     try-expand-whole-kill) t))
    (bind-keys ("<C-tab>" . hippie-expand)
	       ("M-/" . crazy-hippie-expand)))

  (use-package region-bindings-mode
    ;; hide some more goodies here
    :config (region-bindings-mode-enable)
    (bind-keys :map region-bindings-mode-map
	       ("q" . keyboard-quit)          ;; quit
	       ("k" . kill-region)            ;; kill
	       ("z" . delete-region)          ;; zehen
	       ("c" . kill-ring-save)         ;; copy
	       ("r" . replace-string)         ;; replace
	       ("u" . upcase-initials-region) ;; upcase
	       ("w" . comment-box)            ;; wrap
	       ("g" . comment-or-uncomment-region) ;; gloss
	       ("n" . mc/mark-next-like-this)       ;; next
	       ("j" . mc/unmark-next-like-this)     ;; jerk
	       ("p" . mc/mark-previous-like-this)   ;; prev
	       ("o" . mc/unmark-previous-like-this) ;; off
               ("f" . mc/skip-to-next-like-this)     ;; forward
	       ("b" . mc/skip-to-previous-like-this) ;; backward
	       ("a" . mc/edit-beginnings-of-lines) ;; anfang
	       ("e" . mc/edit-ends-of-lines)       ;; ende
	       ("l" . mc/edit-lines)		   ;; line
	       ("x" . mc/mark-all-like-this-dwim)     ;; x
	       ("m" . mc/mark-all-in-region)	      ;; mark
	       ("t" . mc/mark-sgml-tag-pair)          ;; tag
	       ("d" . mc/mark-all-like-this-in-defun) ;; defun
	       ("h" . mc/mark-all-like-this)	      ;; (w)hole
	       ("i" . mc/insert-numbers)  ;; index
	       ("s" . mc/sort-regions)    ;; sort
	       ("v" . mc/reverse-regions) ;; vert
	       )
    (use-package multiple-cursors
      ;; defer until main functions are called from here

            (output-html "HTML Viewer")))
    (setq TeX-view-program-list
          '(("DVI Viewer" "open %o")
            ;; http://www.stefanom.org/setting-up-a-nice-auctex-environment-on-mac-os-x/
            ("PDF Viewer" "/opt/homebrew-cask/Caskroom/skim/1.4.14/Skim.app/Contents/SharedSupport/displayline -b %n %o %b")
            ("HTML Viewer" "open %o")))))

