               (turn-on-cdlatex)
               (latex-preview-pane-enable)
               (TeX-PDF-mode 1)
-              (push '("latexmk" "latexmk -latexoption=-shell-escape -pdf %s"
+              (push '("latexmk" "latexmk -shell-escape -pdf %s"
                       TeX-run-TeX nil t :help "Run latexmk on file")
                     TeX-command-list)
               (setq TeX-command-default "latexmk")

                ("<M-S-return>" . cider-eval-buffer)
                ("<C-M-S-return>" . cider-load-file))))

(with-eval-after-load 'prolog
  (use-package ediprolog
    ;; defer with :bind somehow does not work properly for ediprolog


(use-package org
  :mode ("\\.org\\'" . org-mode)
  :init
  (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
  :config
  (setq org-log-done 'time
        org-latex-create-formula-image-program 'imagemagick
        org-src-fontify-natively t
        org-latex-listings 'minted
        org-confirm-babel-evaluate nil)
