 ;; -> http://nakkaya.com/2010/09/07/writing-papers-using-org-mode/
 ;; -> http://mirrors.ctan.org/macros/latex/contrib/minted/minted.pdf
 
+;; -shell-escape is required when converting a .tex file containing minted
+;; package to a .pdf
+;; Now org > tex > pdf conversion can happen with the org default
+;; `C-c C-e l p` key binding
+(setq org-latex-pdf-process '("pdflatex -shell-escape %f"))
+
+;; You can also do the org > tex > pdf conversion and open the pdf file in
+;; acroread directly using the `C-c C-e l o` key binding
+;; change the default app for opening pdf files from org
+;; Source: http://stackoverflow.com/questions/8834633/how-do-i-make-org-mode-open-pdf-files-in-evince
+(eval-after-load "org"
+  '(progn
+     ;; Change .pdf association directly within the alist
+     (setcdr (assoc "\\.pdf\\'" org-file-apps) "acroread %s")))
+
 ;; customization of the minted package (applied to embedded source codes)
 ;; Source: https://code.google.com/p/minted/
 (setq org-latex-minted-options

(setq org-latex-listings 'minted)
;; (setq org-export-latex-listings 'minted) in org version < 8.0
(add-to-list 'org-latex-packages-alist '("" "minted"))
;; (add-to-list 'org-export-latex-packages-alist '("" "minted")) in org version < 8.0
;; Above will output tex files with \usepackage{minted}


;; Time-stamp: <2014-05-28 11:56:52 kmodi>

;; Org Mode

