1 ;; Added by Package.el. This must come before configurations of
2 ;; installed packages. Don't delete this line. If you don't want it,
3 ;; just comment it out by adding a semicolon to the start of the line.
4 ;; You may delete these explanatory comments.
7 ;; Mandatory theme, being from Leuven originally
10 ;; ESS - for working in R
11 (autoload 'R-mode "ess-site.el" "Major mode for editing R source." t)
16 (load "auctex.el" nil t t)
17 (load "preview-latex.el" nil t t)
19 ;; org-mode support for R and LaTeX
20 (org-babel-do-load-languages
21 'org-babel-load-languages
24 ;; This needs to be fixed - option below results in error when enabled
25 ;;(org-confirm-babel-evaluate nil)
27 ;; Automatically switch to various modes
29 '(("\\.mdwn\\'" . markdown-mode)
30 ("\\.md\\'" . markdown-mode)
31 ("\\.yarn\\'" . markdown-mode)
32 ("\\.js\\'" . js-mode)
33 ("\\.json\\'" . js-mode)
34 ("Makefile" . makefile-mode)
35 ("README" . markdown-mode)
36 ("NEWS" . markdown-mode)
37 ("COMMIT_EDITMSG\\'" . text-mode)
38 ("\\.html\\'" . html-mode)
39 ("\\.css\\'" . css-mode)
40 ("\\.yaml\\'" . yaml-mode)
41 ("\\.yml\\'" . yaml-mode)
42 ("\\.ick\\'" . yaml-mode)
43 ("\\.py\\'" . python-mode)
45 ("\\.org\\'" . org-mode)
46 ("\\.sh\\'" . shell-script-mode)))
48 ;; Enable the melpa archive for packages
50 (setq package-enable-at-startup nil)
51 (add-to-list 'package-archives
52 '("melpa" . "http://melpa.milkbox.net/packages/") t)
53 (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
54 (add-to-list 'package-archives
55 '("elpy" . "http://jorgenschaefer.github.io/packages/"))
59 ;; custom-set-variables was added by Custom.
60 ;; If you edit it by hand, you could mess it up, so be careful.
61 ;; Your init file should contain only one such instance.
62 ;; If there is more than one, they won't work right.
63 '(org-export-backends (quote (ascii html icalendar latex md odt)))
64 '(package-selected-packages
66 (org htmlize leuven-theme lua-mode ess-R-data-view ess))))
68 ;; custom-set-faces was added by Custom.
69 ;; If you edit it by hand, you could mess it up, so be careful.
70 ;; Your init file should contain only one such instance.
71 ;; If there is more than one, they won't work right.