Move al keybindings to base-keys.
This commit is contained in:
parent
25e4d3ec05
commit
fe386ce0d8
@ -11,7 +11,7 @@
|
|||||||
(use-package use-package
|
(use-package use-package
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(setq use-package-always-ensure t) ; auto-instalar extenciones que no lo estén
|
(setq use-package-always-ensure t) ; auto-instalar paquetes que no estésn instalados
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Auto-actualizar los paquetes
|
;; Auto-actualizar los paquetes
|
||||||
@ -22,7 +22,6 @@
|
|||||||
(auto-package-update-prompt-before-update t)
|
(auto-package-update-prompt-before-update t)
|
||||||
(auto-package-update-hide-results t)
|
(auto-package-update-hide-results t)
|
||||||
:config
|
:config
|
||||||
(auto-package-update-maybe)
|
|
||||||
(auto-package-update-at-time "06:00")
|
(auto-package-update-at-time "06:00")
|
||||||
:init
|
:init
|
||||||
(setq
|
(setq
|
||||||
@ -113,10 +112,6 @@
|
|||||||
;; Automcompletado
|
;; Automcompletado
|
||||||
(use-package company
|
(use-package company
|
||||||
:defer t
|
:defer t
|
||||||
:bind (:map company-active-map
|
|
||||||
("<tab>" . company-indent-or-complete-common)) ; autocompletar con tab como se haría en bash-competition en la terminal de linux
|
|
||||||
(:map company-active-map
|
|
||||||
("<escape>" . company-abort)) ; cerrar las sugerencias de autocompletado precionando escape.
|
|
||||||
:config
|
:config
|
||||||
(global-company-mode)
|
(global-company-mode)
|
||||||
(setq company-dabbrev-downcase nil) ; autocompletado case-sensitive.
|
(setq company-dabbrev-downcase nil) ; autocompletado case-sensitive.
|
||||||
@ -202,13 +197,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
;; Autocompletado para el minibuffer (counsel e ivy)
|
;; Autocompletado para el minibuffer (counsel e ivy)
|
||||||
(use-package counsel
|
(use-package counsel :defer t)
|
||||||
:defer t
|
|
||||||
:bind
|
|
||||||
("M-x" . counsel-M-x)
|
|
||||||
("C-x C-m" . counsel-M-x)
|
|
||||||
("C-x C-f" . counsel-find-file)
|
|
||||||
("C-x y" . counsel-yank-pop))
|
|
||||||
|
|
||||||
(use-package projectile
|
(use-package projectile
|
||||||
:defer t
|
:defer t
|
||||||
@ -216,8 +205,6 @@
|
|||||||
:config
|
:config
|
||||||
(projectile-mode)
|
(projectile-mode)
|
||||||
:custom ((projectile-completion-system 'ivy))
|
:custom ((projectile-completion-system 'ivy))
|
||||||
:bind-keymap
|
|
||||||
("C-c p" . projectile-command-map)
|
|
||||||
:init
|
:init
|
||||||
;; Rutas de archivos temporales.
|
;; Rutas de archivos temporales.
|
||||||
(setq projectile-cache-file (expand-file-name "projectile.cache" temp-dir))
|
(setq projectile-cache-file (expand-file-name "projectile.cache" temp-dir))
|
||||||
@ -253,16 +240,9 @@
|
|||||||
;; Mostrar info del panel inferior de otra manera
|
;; Mostrar info del panel inferior de otra manera
|
||||||
(use-package ivy
|
(use-package ivy
|
||||||
:defer t
|
:defer t
|
||||||
:bind
|
|
||||||
("C-x s" . swiper)
|
|
||||||
("C-x C-r" . ivy-resume)
|
|
||||||
("C-x b" . ivy-switch-buffer)
|
|
||||||
:config
|
:config
|
||||||
(ivy-mode 1)
|
(ivy-mode 1)
|
||||||
(setq ivy-use-virtual-buffers nil)
|
(setq ivy-use-virtual-buffers nil)
|
||||||
(define-key ivy-minibuffer-map (kbd "TAB") 'ivy-partial)
|
|
||||||
(define-key read-expression-map (kbd "C-r") 'counsel-expression-history)
|
|
||||||
(define-key ivy-minibuffer-map (kbd "<escape>") 'minibuffer-keyboard-quit)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Iconos en Ivy (allthe icons)
|
;; Iconos en Ivy (allthe icons)
|
||||||
@ -286,6 +266,7 @@
|
|||||||
(use-package magit :defer t)
|
(use-package magit :defer t)
|
||||||
|
|
||||||
;; Auto-inicios de major y minor modes afuera para poder hacer defer
|
;; Auto-inicios de major y minor modes afuera para poder hacer defer
|
||||||
|
(auto-package-update-maybe)
|
||||||
(drag-stuff-global-mode 1)
|
(drag-stuff-global-mode 1)
|
||||||
(save-place-mode 1)
|
(save-place-mode 1)
|
||||||
(global-git-gutter-mode +1)
|
(global-git-gutter-mode +1)
|
||||||
|
@ -54,5 +54,23 @@
|
|||||||
;; Atajo para counsel-proyectile
|
;; Atajo para counsel-proyectile
|
||||||
(global-set-key (kbd "C-x p") 'counsel-projectile)
|
(global-set-key (kbd "C-x p") 'counsel-projectile)
|
||||||
|
|
||||||
|
;; Atajos de Ivy
|
||||||
|
(global-set-key (kbd "C-x s") 'swiper)
|
||||||
|
(global-set-key (kbd "C-x C-r") 'ivy-resume)
|
||||||
|
(global-set-key (kbd "C-x b") 'ivy-switch-buffer)
|
||||||
|
(global-set-key (kbd "C-x C-b") 'ivy-switch-buffer)
|
||||||
|
(define-key ivy-minibuffer-map (kbd "TAB") 'ivy-partial)
|
||||||
|
(define-key ivy-minibuffer-map (kbd "<escape>") 'minibuffer-keyboard-quit)
|
||||||
|
|
||||||
|
;; Atajos projectile
|
||||||
|
(global-set-key (kbd "C-c p") 'projectile-command-map)
|
||||||
|
|
||||||
|
;; Atajos counsel
|
||||||
|
(global-set-key (kbd "M-x") 'counsel-M-x)
|
||||||
|
(global-set-key (kbd "C-x C-f") 'counsel-find-file)
|
||||||
|
(global-set-key (kbd "M-y") 'counsel-yank-pop)
|
||||||
|
(define-key company-active-map (kbd "<tab>") 'company-indent-or-complete-common) ; autocompletar con tab como se haría en bash-competition en la terminal de linux
|
||||||
|
(define-key company-active-map (kbd "<escape>") 'company-abort) ; cerrar las sugerencias de autocompletado precionando escape.
|
||||||
|
|
||||||
(provide 'base-keys)
|
(provide 'base-keys)
|
||||||
;;; base-keys.el ends here
|
;;; base-keys.el ends here
|
||||||
|
Loading…
Reference in New Issue
Block a user