Browse Source

Emacs: Ivy and Cargo modes

master
Julio Biason 4 years ago
parent
commit
a697373a33
  1. 30
      emacs.d/init.el

30
emacs.d/init.el

@ -28,7 +28,13 @@
;; rust mode
(use-package rust-mode
:ensure t)
:ensure t
:config (setq rust-format-on-save t))
;; cargo
(use-package cargo
:ensure t
:config (add-hook 'rust-mode-hook 'cargo-minor-mode))
;; Notes
(use-package org
@ -45,6 +51,7 @@
:commands lsp
:config (setq lsp-enable-indentation t
lsp-enable-on-type-formatting t))
(use-package lsp-ui
:commands lsp-ui-mode
:ensure t
@ -59,8 +66,22 @@
; :ensure t)
;; install fill-column-indicador: right side gutter
; (use-package fill-column-indicator
; :ensure t)
(use-package fill-column-indicator
:ensure t)
;; better completion
(use-package counsel
:ensure t
:config
(global-set-key "\C-s" 'swiper)
(global-set-key (kbd "C-c C-r") 'ivy-resume)
(global-set-key (kbd "M-x") 'counsel-M-x) ;
(global-set-key (kbd "C-x C-f") 'counsel-find-file)
(global-set-key (kbd "C-c g") 'counsel-git)
(global-set-key (kbd "C-c j") 'counsel-git-grep)
(global-set-key (kbd "C-x l") 'counsel-locate)
(define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history)
)
;; powerline
(use-package powerline
@ -72,8 +93,7 @@
:ensure t
:config (setq doom-themes-enable-bold t
doom-themes-enable-italic t)
(load-theme 'doom-molokai t)
)
(load-theme 'doom-molokai t))
; (setq-default fill-column 80)
; (define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1)))
; (global-fci-mode 1)

Loading…
Cancel
Save