-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
64 lines (56 loc) · 2.72 KB
/
init.el
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
;;; init.el --- Initial config hook
;;; Commentary:
;;; Code:
(add-to-list 'load-path "/opt/homebrew/Cellar/cask/0.8.8")
(add-to-list 'load-path "/usr/local/Cellar/cask/0.8.8")
(require 'cask)
(cask-initialize)
(add-to-list 'load-path "~/.emacs.d/custom/")
(require 'package)
(add-to-list 'package-archives
'("gnu" . "https://elpa.gnu.org/packages/") t)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(defmacro after (mode &rest body)
"`eval-after-load' MODE evaluate BODY.
This allows us to define configuration for features that aren't
always installed and only eval that configuration after the feature is loaded.
ELPA packages usually provide an -autoloads feature which we can
use to determine if the package is installed/loaded."
(declare (indent defun))
`(eval-after-load (symbol-name ,mode)
'(progn ,@body)))
(setq rbenv-installation-directory "~/.rbenv/bin/rbenv")
(after 'rbenv-autoloads
(require 'rbenv)
(global-rbenv-mode))
(load "00personal-setup.el")
(load "01ruby.el")
(load "02keybindings.el")
(load "03org-roam-conf.el")
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(auto-save-file-name-transforms '((".*" "~/.emacs.d/autosaves/\\1" t)))
'(backup-directory-alist '((".*" . "~/.emacs.d/backups/")))
'(package-selected-packages
'(cask project-explorer flx counsel counsel-ag-popup ivy org-roam gnu-elpa-keyring-update php-mode minitest nginx-mode flycheck terraform-mode go-mode docker-compose-mode dockerfile-mode dotenv-mode protobuf-mode yasnippet yaml-mode web-mode undo-tree textmate solarized-theme smartparens rubocop rspec-mode robe rinari rbenv rainbow-delimiters projectile-rails pallet multiple-cursors markdown-mode magit-gh-pulls magit-filenotify highlight-indentation grizzl exec-path-from-shell enh-ruby-mode date-at-point auto-complete ag))
'(undo-tree-auto-save-history nil)
'(warning-suppress-types '(((package reinitialization)))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; Fix for ag highlighting issue https://github.com/Wilfred/ag.el/issues/124#issuecomment-386321142
(ignore-errors
(require 'ansi-color)
(defun colorize-compilation-buffer ()
(when (eq major-mode 'compilation-mode)
(ansi-color-apply-on-region (point-min) (point-max))))
(add-hook 'compilation-filter-hook 'colorize-compilation-buffer))
(provide 'init)
;;; init.el ends here