]> git.vanrenterghem.biz Git - Dotty.git/blob - emacs/.emacs
Enable company mode; install magit and auctex.
[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 ;; enable autocomplete
14 (add-hook 'after-init-hook 'global-company-mode)
16 (require 'org)
18 ;; Auctex
19 (load "auctex.el" nil t t)
20 (load "preview-latex.el" nil t t)
22 ;; org-mode support for R and LaTeX
23 (org-babel-do-load-languages
24  'org-babel-load-languages
25  '((R . t)
26    (latex . t)))
27 ;; Security risk - This is somewhat ill-advised it appears
28 (setq org-confirm-babel-evaluate nil)
30 ;; Automatically switch to various modes
31 (setq auto-mode-alist
32     '(("\\.mdwn\\'" . markdown-mode)
33       ("\\.md\\'" . markdown-mode)
34       ("\\.yarn\\'" . markdown-mode)
35       ("\\.js\\'" . js-mode)
36       ("\\.json\\'" . js-mode)
37       ("Makefile" . makefile-mode)
38       ("README" . markdown-mode)
39       ("NEWS" . markdown-mode)
40       ("COMMIT_EDITMSG\\'" . text-mode)
41       ("\\.html\\'" . html-mode)
42       ("\\.css\\'" . css-mode)
43       ("\\.yaml\\'" . yaml-mode)
44       ("\\.yml\\'" . yaml-mode)
45       ("\\.ick\\'" . yaml-mode)
46       ("\\.py\\'" . python-mode)
47       ("\\.R\\'" . R-mode)
48       ("\\.org\\'" . org-mode)
49       ("\\.sh\\'" . shell-script-mode)))
51 ;; Enable the melpa archive for packages
52 (require 'package)
53 (setq package-enable-at-startup nil)
54 (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
55 (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
56 (add-to-list 'package-archives
57              '("elpy" . "http://jorgenschaefer.github.io/packages/"))
59 (custom-set-variables
60  ;; custom-set-variables was added by Custom.
61  ;; If you edit it by hand, you could mess it up, so be careful.
62  ;; Your init file should contain only one such instance.
63  ;; If there is more than one, they won't work right.
64  '(org-export-backends '(ascii html icalendar latex md odt))
65  '(package-selected-packages
66    '(company magit auctex lsp-mode elpy ## org htmlize leuven-theme lua-mode ess-smart-underscore ess-R-data-view ess)))
67 (custom-set-faces
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.
72  '(default ((t (:family "Source Code Pro" :foundry "ADBO" :slant normal :weight normal :height 143 :width normal)))))