Browse code

Moved a bunch of packages to `use-package`

Julio Biason authored on 19/03/2019 05:20:29
Showing 1 changed files

... ...
@@ -22,19 +22,46 @@
22 22
 (require 'use-package)
23 23
 (setq use-package-always-ensure t)
24 24
 
25
+; install evil
26
+(use-package evil
27
+  :ensure t
28
+  :config
29
+  (evil-mode 1))
30
+
31
+; install goto last change (opens the file in the last position)
32
+(use-package goto-last-change
33
+			 :ensure t)
34
+
35
+; install fill-column-indicador: right side gutter
36
+(use-package fill-column-indicator
37
+			 :ensure t)
38
+
39
+; install powerline
40
+(use-package powerline
41
+			 :ensure t
42
+			 :config (powerline-center-evil-theme))
43
+
44
+; rust mode
45
+(use-package rust-mode
46
+			 :ensure t)
47
+
48
+; colorscheme
49
+(use-package monokai-theme
50
+			 :ensure t)
51
+
25 52
 (custom-set-variables
26 53
  ;; custom-set-variables was added by Custom.
27 54
  ;; If you edit it by hand, you could mess it up, so be careful.
28 55
  ;; Your init file should contain only one such instance.
29 56
  ;; If there is more than one, they won't work right.
30
- '(custom-enabled-themes (quote (mustang)))
57
+ '(custom-enabled-themes (quote (monokai)))
31 58
  '(custom-safe-themes
32 59
    (quote
33 60
     ("039eb505cec29b4521ce5ecf5abf523492005f0c65d0640f62e53e2d3068b393" "6c0a087a4f49c04d4002393ffd149672f70e4ab38d69bbe8b39059b61682b61c" default)))
34 61
  '(inhibit-startup-screen t)
35 62
  '(package-selected-packages
36 63
    (quote
37
-    (rust-mode evil-quickscope evil-tabs ## scala-mode evil-leader editorconfig diff-hl neotree helm-ag helm-projectile projectile helm hlinum fill-column-indicator evil mustang-theme cider))))
64
+    (rust-mode evil-quickscope evil-tabs ## scala-mode evil-leader editorconfig diff-hl neotree helm-ag helm-projectile projectile helm hlinum fill-column-indicator evil monokai-theme cider))))
38 65
 (custom-set-faces
39 66
  ;; custom-set-faces was added by Custom.
40 67
  ;; If you edit it by hand, you could mess it up, so be careful.
... ...
@@ -45,26 +72,16 @@
45 72
 (menu-bar-mode 0)
46 73
 (tool-bar-mode 0)
47 74
 
48
-(add-to-list 'load-path "~/.emacs.d/evil")
49
-(require 'evil)
50
-(evil-mode 1)
51
-
52
-(require 'goto-last-change)
53
-
54 75
 (show-paren-mode 1)
55 76
 
56 77
 (require 'whitespace)
57 78
 (setq whitespace-style '(face empty tabs lines-tail trailing))
58 79
 (global-whitespace-mode t)
59 80
 
60
-(require 'fill-column-indicator)
61 81
 (setq-default fill-column 80)
62 82
 (define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))  
63 83
 (global-fci-mode 1)
64 84
 
65
-(require 'powerline)
66
-(powerline-center-evil-theme)
67
-
68 85
 (define-key evil-normal-state-map (kbd "C-w <down>") 'evil-window-down)
69 86
 (define-key evil-normal-state-map (kbd "C-w <up>") 'evil-window-up)
70 87
 (define-key evil-normal-state-map (kbd "C-w <right>") 'evil-window-right)