8cfb5be101fea0240ad083488b1def5fa55875a7
[Dotty.git] / emacs / .emacs
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.
5 (package-initialize)
7 ;; Mandatory theme, being from Leuven originally
8 (load-theme 'leuven t)
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
19  '((R . t)
20    (latex . t)))
22 ;; Automatically switch to various modes
23 (setq auto-mode-alist
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)
39       ("\\.R\\'" . R-mode)
40       ("\\.sh\\'" . shell-script-mode)))
42 ;; Enable the melpa archive for packages
43 (require 'package)
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/"))
52 (custom-set-variables
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
58    (quote
59     (leuven-theme lua-mode auto-complete ess-smart-underscore ess-R-data-view ess))))
60 (custom-set-faces
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.
65  )