-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.emacs
64 lines (49 loc) · 1.69 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
(setq gc-cons-threshold most-positive-fixnum)
(if (equal system-configuration "x86_64-unknown-linux-gnu")
(setq system-configuration "x86_64-pc-linux-gnu"))
(setq system-name "localhost")
(load (setq custom-file (or custom-file "emacs.custom.el")))
(load "init.el")
(load "emacs");;loaded twice because of custom-file by startup.el
(load "emacs.patches")
(setq grep-find-ignored-directories
(append grep-find-ignored-directories
'(
;; Elixir
"_build" "deps"
;; Clojure
"target"
;; Ruby
"tmp"
;; "i18n"
"log" "logs" "public/assets"
;; Firefox addons
"firefox-sdk"
;; JavaScript
"dist" "bower_components" "node_modules" ".sass-cache" ".tmp")))
(setq grep-find-ignored-files
(append grep-find-ignored-files
'(
;; Phoenix assets
"app.css" "jquery.js"
;; Ruby "i18n"
"translations.js"
)))
(require 'erlang-start nil t)
;; (add-to-list 'auto-mode-alist '("\\.sass\\'" . scss-mode))
;; (add-to-list 'auto-mode-alist '("\\.rb\\'" . enh-ruby-mode))
;; (with-eval-after-load 'enh-ruby-mode
;; (define-key enh-ruby-mode-map [(control left)] 'enh-ruby-backward-sexp)
;; (define-key enh-ruby-mode-map [(control right)] 'enh-ruby-forward-sexp))
(defvar ruby-use-smie nil)
(with-eval-after-load 'inf-ruby
(define-key inf-ruby-minor-mode-map (kbd "C-c C-s") 'inf-ruby-console-auto))
(when (fboundp 'global-diff-hl-mode)
(global-diff-hl-mode +1))
(when (fboundp 'global-robe-mode)
(global-robe-mode +1)
(add-to-list 'debug-ignored-errors "Method not found"))
(run-at-time 1 nil (lambda ()
(setq gc-cons-threshold 128000000)
(garbage-collect)
(setq garbage-collection-messages t)))