Created
November 8, 2018 16:01
-
-
Save peteWT/eaf5a9fd73c96eb4089d3ec2fcca4ca9 to your computer and use it in GitHub Desktop.
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
(require 'package) | |
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) | |
(not (gnutls-available-p)))) | |
(proto (if no-ssl "http" "https"))) | |
;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired | |
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t) | |
;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t) | |
(when (< emacs-major-version 24) | |
;; For important compatibility libraries like cl-lib | |
(add-to-list 'package-archives '("gnu" . (concat proto "://elpa.gnu.org/packages/"))))) | |
(package-initialize) | |
(ac-config-default) | |
;;(global-auto-complete-mode t) | |
(setq python-shell-interpreter "python2") | |
(setq org-latex-caption-above nil) | |
(setq debug-on-error t) | |
;; active Babel languages | |
(org-babel-do-load-languages | |
'org-babel-load-languages | |
'((sql . t) | |
(sqlite . t) | |
(python . t) | |
(latex . t) | |
(Emacs-lisp . nil))) | |
(when (memq window-system '(mac ns)) | |
(exec-path-from-shell-initialize)) | |
(exec-path-from-shell-copy-env "PYTHONPATH") | |
(with-eval-after-load 'ox | |
(require 'ox-pandoc)) | |
(setq org-latex-pdf-process | |
'("xelatex -interaction nonstopmode -output-directory %o %f" | |
"bibtex %b" | |
"xelatex -interaction nonstopmode -output-directory %o %f" | |
"xelatex -interaction nonstopmode -output-directory %o %f")) | |
(add-to-list 'org-latex-packages-alist '("" "tabularx")) | |
(require 'org-ref) | |
(load-theme 'nova) | |
(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. | |
'(custom-safe-themes | |
(quote | |
("2beaaef4f47f22c89948fdb3859799f8f2b64c1282ec21d71d6df49d68e68862" "f71859eae71f7f795e734e6e7d178728525008a28c325913f564a42f74042c31" "31772cd378fd8267d6427cec2d02d599eee14a1b60e9b2b894dd5487bd30978e" "8db4b03b9ae654d4a57804286eb3e332725c84d7cdab38463cb6b97d5762ad26" "bb08c73af94ee74453c90422485b29e5643b73b05e8de029a6909af6a3fb3f58" "01e0367d8c3249928a2e0ebc9807b2f791f81a0d2a7c8656e1fbf4b1dbaa404c" "dcb9fd142d390bb289fee1d1bb49cb67ab7422cd46baddf11f5c9b7ff756f64c" default))) | |
'(org-export-backends (quote (ascii beamer html icalendar latex md odt))) | |
'(package-selected-packages | |
(quote | |
(gist nova-theme color-theme color-theme-modern color-theme-sanityinc-solarized color-theme-sanityinc-tomorrow color-theme-solarized org-ref auto-complete magit yaml-mode challenger-deep-theme ox-pandoc exec-path-from-shell)))) | |
(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