Browse Source

Trying Helm now

master
Julio Biason 4 years ago
parent
commit
462292e7bb
  1. 59
      emacs.d/init.el

59
emacs.d/init.el

@ -17,6 +17,10 @@
(package-refresh-contents)
(package-install 'use-package))
;; don't show startup messages
(setq inhibit-startup-message t)
(setq initial-scratch-message nil)
(require 'use-package)
(setq use-package-always-ensure t)
@ -69,43 +73,16 @@
lsp-enable-on-type-formatting t)
:commands lsp)
;; (use-package lsp-ui
;; :commands lsp-ui-mode
;; :ensure t
;; :config (setq lsp-ui-sideline-show-diagnostics t))
(use-package lsp-ivy
:ensure t
:commands lsp-ivy-workspace-symbol)
;; Markdown mode
(use-package markdown-mode
:ensure t
:init (add-hook 'markdown-mode-hook 'turn-on-auto-fill))
;; 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)
;; 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)
)
;; doom-modeline
;; doom-modeline, the status bar
(use-package doom-modeline
:ensure t
:init (doom-modeline-mode 1))
@ -119,22 +96,20 @@
;; highlights the current line
(use-package hlinum
:ensure t)
:ensure t
:config
(set-face-foreground 'linum-highlight-face "white")
(set-face-background 'linum-highlight-face nil)
(hlinum-activate)
;; don't show startup messages
(setq inhibit-startup-message t)
(setq initial-scratch-message nil)
(hlinum-activate))
;; git gutters
(use-package diff-hl
:ensure t
:init (setq diff-hl-side 'right))
:init (setq diff-hl-side 'right)
:config
(global-diff-hl-mode 1)
(diff-hl-margin-mode 1)
(diff-hl-flydiff-mode 1)
(diff-hl-flydiff-mode 1))
;; editorconfig
(use-package editorconfig
@ -148,14 +123,22 @@
;; Snippets (snippets reside in ~/.emacs.d/snippets/ and should be
;; kept in a directory with mode name)
(use-package yasnippet
:ensure t)
(yas-global-mode 1)
:ensure t
:config
(yas-global-mode 1))
;; colorize parens
(use-package rainbow-delimiters
:ensure t
:config (add-hook 'prog-mode-hook #'rainbow-delimiters-mode))
;; incremental search
(use-package helm
:ensure t
:config
(global-set-key (kbd "M-x") 'helm-M-x)
(global-set-key (kbd "C-x C-f") 'helm-find-files))
;; auto-pairs
(electric-pair-mode 1)

Loading…
Cancel
Save