   :ensure org-plus-contrib
   :pin org
   :mode ("\\.org\\'" . org-mode)
-  :config
-  (setc org-log-note-clock-out t)
-  (setc org-duration-format 'h:mm)
-  (setc org-pretty-entities t))
+  :custom
+  (org-log-note-clock-out t)
+  (org-duration-format 'h:mm)
+  (org-pretty-entities t)
+  :config
+  (use-package ox-latex
+    :custom
+    (org-latex-minted-options '(("breaklines" "true")
+                                ("breakautoindent" "true")
+                                ("breakanywhere" "true")
+                                        ;("breakindentnchars" "2")
+                                ))
+    (org-latex-listings 'minted)
+    (org-latex-pdf-process (mapcar (lambda (command) (replace-regexp-in-string (regexp-quote "%latex ") "%latex -shell-escape " command)) org-latex-pdf-process)))
+  (add-to-list 'org-latex-packages-alist '("newfloat" "minted")))
 
 (use-package writeroom-mode
   :commands writeroom-mode)

(require 'diminish)
(require 'bind-key)

;;(setc use-package-verbose t)
(setc use-package-always-ensure t)

;;; * emacs customize auto generated config


;; -*- orgstruct-heading-prefix-regexp: ";;; " -*-

(defmacro custom (variable value)
  `(customize-set-variable ',variable ,value))

;;; * window/gui tweaks

;; to make window look nicely

(custom inhibit-startup-screen t)
(custom inhibit-startup-echo-area-message (user-login-name))

(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)

;; this avoids blinking app icon in windows
(custom ring-bell-function 'ignore)

(add-to-list 'default-frame-alist
             '(font . "Source Code Pro-11"))

;;; * user info

(custom user-full-name "Florian Hassanen")
(custom user-mail-address "florian.hassanen@gmail.com")

;;; * encoding

