forked from rogerleite/Dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.emacs
58 lines (45 loc) · 1.21 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
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(require 'package)
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)
;; helm
(use-package helm
:ensure t
:bind (("M-x" . helm-M-x)
("C-c C-f" . helm-find-files)
("C-c C-b" . helm-buffers-list)))
;; evil mode
(use-package evil
:ensure t
:config (evil-mode 1))
;; ruby
(use-package ruby-mode
:ensure t)
;; rspec
(use-package rspec-mode
:ensure t)
;; inf-ruby for rspec binding pry
(use-package inf-ruby
:ensure t)
(add-hook 'after-init-hook 'inf-ruby-switch-setup)
;; magit
(use-package magit
:ensure t
:bind (("C-c C-m" . magit-status))
:config (magit-mode))
;; config
(tool-bar-mode -1)
(set-default 'truncate-lines t)
(global-linum-mode t)
(setq vc-follow-symlinks nil)
(setq ruby-deep-indent-paren 1)
;; themes
;; magit
(use-package dracula-theme
:ensure t)
(setq custom-safe-themes t)
(load-theme 'dracula t)