Browse Source

Moved a bunch of packages to `use-package`

master
Julio Biason 6 years ago
parent
commit
786c57ec15
  1. 41
      emacs/emacs

41
emacs/emacs

@ -22,19 +22,46 @@
(require 'use-package) (require 'use-package)
(setq use-package-always-ensure t) (setq use-package-always-ensure t)
; install evil
(use-package evil
:ensure t
:config
(evil-mode 1))
; install goto last change (opens the file in the last position)
(use-package goto-last-change
:ensure t)
; install fill-column-indicador: right side gutter
(use-package fill-column-indicator
:ensure t)
; install powerline
(use-package powerline
:ensure t
:config (powerline-center-evil-theme))
; rust mode
(use-package rust-mode
:ensure t)
; colorscheme
(use-package monokai-theme
:ensure t)
(custom-set-variables (custom-set-variables
;; custom-set-variables was added by Custom. ;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(custom-enabled-themes (quote (mustang))) '(custom-enabled-themes (quote (monokai)))
'(custom-safe-themes '(custom-safe-themes
(quote (quote
("039eb505cec29b4521ce5ecf5abf523492005f0c65d0640f62e53e2d3068b393" "6c0a087a4f49c04d4002393ffd149672f70e4ab38d69bbe8b39059b61682b61c" default))) ("039eb505cec29b4521ce5ecf5abf523492005f0c65d0640f62e53e2d3068b393" "6c0a087a4f49c04d4002393ffd149672f70e4ab38d69bbe8b39059b61682b61c" default)))
'(inhibit-startup-screen t) '(inhibit-startup-screen t)
'(package-selected-packages '(package-selected-packages
(quote (quote
(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)))) (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))))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
@ -45,26 +72,16 @@
(menu-bar-mode 0) (menu-bar-mode 0)
(tool-bar-mode 0) (tool-bar-mode 0)
(add-to-list 'load-path "~/.emacs.d/evil")
(require 'evil)
(evil-mode 1)
(require 'goto-last-change)
(show-paren-mode 1) (show-paren-mode 1)
(require 'whitespace) (require 'whitespace)
(setq whitespace-style '(face empty tabs lines-tail trailing)) (setq whitespace-style '(face empty tabs lines-tail trailing))
(global-whitespace-mode t) (global-whitespace-mode t)
(require 'fill-column-indicator)
(setq-default fill-column 80) (setq-default fill-column 80)
(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1))) (define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))
(global-fci-mode 1) (global-fci-mode 1)
(require 'powerline)
(powerline-center-evil-theme)
(define-key evil-normal-state-map (kbd "C-w <down>") 'evil-window-down) (define-key evil-normal-state-map (kbd "C-w <down>") 'evil-window-down)
(define-key evil-normal-state-map (kbd "C-w <up>") 'evil-window-up) (define-key evil-normal-state-map (kbd "C-w <up>") 'evil-window-up)
(define-key evil-normal-state-map (kbd "C-w <right>") 'evil-window-right) (define-key evil-normal-state-map (kbd "C-w <right>") 'evil-window-right)

Loading…
Cancel
Save