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 ;; Security risk - This is somewhat ill-advised it appears
25 (setq 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 '("melpa" . "https://melpa.org/packages/") t)
52 (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
53 (add-to-list 'package-archives
54 '("elpy" . "http://jorgenschaefer.github.io/packages/"))
57 ;; custom-set-variables was added by Custom.
58 ;; If you edit it by hand, you could mess it up, so be careful.
59 ;; Your init file should contain only one such instance.
60 ;; If there is more than one, they won't work right.
61 '(org-export-backends '(ascii html icalendar latex md odt))
62 '(package-selected-packages
63 '(lsp-mode elpy ## org htmlize leuven-theme lua-mode ess-smart-underscore ess-R-data-view ess)))
65 ;; custom-set-faces was added by Custom.
66 ;; If you edit it by hand, you could mess it up, so be careful.
67 ;; Your init file should contain only one such instance.
68 ;; If there is more than one, they won't work right.
69 '(default ((t (:family "Source Code Pro" :foundry "ADBO" :slant normal :weight normal :height 143 :width normal)))))