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)
13 (require 'ess-smart-underscore)
14 (require 'auto-complete)
16 ;; org-mode support for R and LaTeX
17 (org-babel-do-load-languages
18 'org-babel-load-languages
22 ;; Automatically switch to various modes
24 '(("\\.mdwn\\'" . markdown-mode)
25 ("\\.md\\'" . markdown-mode)
26 ("\\.yarn\\'" . markdown-mode)
27 ("\\.js\\'" . js-mode)
28 ("\\.json\\'" . js-mode)
29 ("Makefile" . makefile-mode)
30 ("README" . markdown-mode)
31 ("NEWS" . markdown-mode)
32 ("COMMIT_EDITMSG\\'" . text-mode)
33 ("\\.html\\'" . html-mode)
34 ("\\.css\\'" . css-mode)
35 ("\\.yaml\\'" . yaml-mode)
36 ("\\.yml\\'" . yaml-mode)
37 ("\\.ick\\'" . yaml-mode)
38 ("\\.py\\'" . python-mode)
40 ("\\.sh\\'" . shell-script-mode)))
42 ;; Enable the melpa archive for packages
44 (setq package-enable-at-startup nil)
45 (add-to-list 'package-archives
46 '("melpa" . "http://melpa.milkbox.net/packages/") t)
47 (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
48 (add-to-list 'package-archives
49 '("elpy" . "http://jorgenschaefer.github.io/packages/"))
53 ;; custom-set-variables was added by Custom.
54 ;; If you edit it by hand, you could mess it up, so be careful.
55 ;; Your init file should contain only one such instance.
56 ;; If there is more than one, they won't work right.
57 '(package-selected-packages
59 (leuven-theme lua-mode auto-complete ess-smart-underscore ess-R-data-view ess))))
61 ;; custom-set-faces was added by Custom.
62 ;; If you edit it by hand, you could mess it up, so be careful.
63 ;; Your init file should contain only one such instance.
64 ;; If there is more than one, they won't work right.