forked from jhamrick/emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.emacs
119 lines (96 loc) · 2.67 KB
/
.emacs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
(add-to-list 'load-path "~/.emacs.d/settings")
(setq plugin-path "~/.emacs.d/plugins/")
(require 'custom-functions)
(require 'ui-settings)
(require 'window-settings)
(require 'cursor-settings)
(require 'text-settings)
;; Smart Operator
(include-plugin "smart-operator")
(require 'smart-operator)
;; Autopair
(include-plugin "autopair")
(require 'autopair)
;; MuMaMo
(load (make-plugin-path "nxhtml/autostart.el"))
;; Workaround the annoying warnings:
;; Warning (mumamo-per-buffer-local-vars):
;; Already 'permanent-local t: buffer-file-name
(when (and (equal emacs-major-version 24)
(equal emacs-minor-version 3))
(eval-after-load "mumamo"
'(setq mumamo-per-buffer-local-vars
(delq 'buffer-file-name mumamo-per-buffer-local-vars))))
;; Popup
(include-plugin "popup")
(require 'popup)
;; Websocket
(include-plugin "websocket")
(require 'websocket)
;; Request
(include-plugin "request")
(require 'request)
;; Ido mode
(require 'ido)
(ido-mode 1)
;; Markdown mode
(include-plugin "markdown-mode")
(autoload 'markdown-mode "markdown-mode.el"
"Major mode for editing Markdown files" t)
(setq auto-mode-alist
(append
(list '("\\.text" . markdown-mode)
'("\\.md" . markdown-mode)
'("\\.markdown" . markdown-mode)
)
auto-mode-alist))
;; C indentation styles
(setq c-basic-offset 8)
(setq c-default-style (quote (
(c-mode . "bsd")
(java-mode . "java")
(awk-mode . "awk")
(other . "gnu"))))
;; Auto complete
(require 'auto-complete-settings)
;; Camelcase functions
(require 'camelcase-settings)
;; Fill column indicator
;(require 'fill-column-indicator-settings)
;; Python mode
(require 'python-settings)
;; LaTeX and Auctex
(require 'latex-settings)
;; Church
;(require 'church)
;; Haskell
;(require 'haskell-mode)
;; R
;(require 'ess-site)
;(setq-default inferior-R-program-name "R")
;; Git
(include-plugin "magit")
(require 'magit)
;; SCSS Mode
(include-plugin "scss-mode")
(autoload 'scss-mode "scss-mode")
(add-to-list 'auto-mode-alist '("\\.scss\\'" . scss-mode))
(setenv
"PATH" (concat
(expand-file-name "~/.rvm/gems/ruby-1.9.3-p392/bin") ":"
(expand-file-name "~/.rvm/rubies/ruby-1.9.3-p392/bin") ":"
(getenv "PATH")))
(setq scss-sass-command (expand-file-name "~/.rvm/gems/ruby-1.9.3-p392/bin/sass"))
(setq scss-compile-at-save nil)
;; Matlab mode
(include-plugin "matlab")
(autoload 'matlab-mode "matlab" "Matlab Editing Mode" t)
(add-to-list
'auto-mode-alist
'("\\.m$" . matlab-mode))
(setq matlab-indent-function t)
(setq matlab-shell-command "matlab")
;; Put auto 'custom' changes in a separate file
(load
(setq custom-file (expand-file-name "settings/custom.el" user-emacs-directory))
'noerror)