Created
May 13, 2016 17:32
-
-
Save peteWT/794e603f3b07b42dd408801d6042da30 to your computer and use it in GitHub Desktop.
emacs config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Melpa | |
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) | |
(package-initialize) | |
(when (memq window-system '(mac ns)) | |
(exec-path-from-shell-initialize)) | |
(exec-path-from-shell-copy-env "PYTHONPATH") | |
(add-hook 'text-mode-hook 'flyspell-mode) | |
(package-initialize) | |
(elpy-enable) | |
(elpy-use-ipython) | |
(org-babel-do-load-languages | |
'org-babel-load-languages (quote ((emacs-lisp . t) | |
(sqlite . t) | |
(R . t) | |
(python . t)))) | |
;; Place org table captions below table | |
(setq org-latex-caption-above nil) | |
;; Dont ask to evaluate sqlite in org-mode | |
(defun my-org-confirm-babel-evaluate1 (lang body) | |
(not (string= lang "sql"))) ; don't ask for ditaa | |
(setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate1) | |
;; Dont ask to evaluate sqlite in org-mode | |
(defun my-org-confirm-babel-evaluate2 (lang body) | |
(not (string= lang "python"))) ; don't ask for ditaa | |
(setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate2) | |
(eval-after-load "org" | |
'(require 'ox-beamer nil t)) | |
(eval-after-load "org" | |
'(require 'ox-odt nil t)) | |
(eval-after-load "org" | |
'(require 'ox-md nil t)) | |
(eval-after-load "org" | |
'(require 'org-ref)) | |
(setq reftex-default-bibliography '("~/Google Drive/References/library.bib")) | |
;; see org-ref for use of these variables | |
(setq org-ref-bibliography-notes "~/Google Drive/References/notes.org" | |
org-ref-default-bibliography '("~/Google Drive/References/library.bib") | |
org-ref-pdf-directory "~/Dropbox/Library/") | |
(setq org-latex-pdf-process | |
'("pdflatex -interaction nonstopmode -output-directory %o %f" | |
"bibtex %b" | |
"pdflatex -interaction nonstopmode -output-directory %o %f" | |
"pdflatex -interaction nonstopmode -output-directory %o %f")) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(org-agenda-files (quote ("~/src/fcat_biomass/calfire.org")))) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment