Browse Source

Trying Helm now

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

67
emacs.d/init.el

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

Loading…
Cancel
Save