diff --git a/configs/base-extensions.el b/configs/base-extensions.el index a1fd956..6e28d9c 100644 --- a/configs/base-extensions.el +++ b/configs/base-extensions.el @@ -11,7 +11,7 @@ (use-package use-package :defer t :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 @@ -22,7 +22,6 @@ (auto-package-update-prompt-before-update t) (auto-package-update-hide-results t) :config - (auto-package-update-maybe) (auto-package-update-at-time "06:00") :init (setq @@ -113,10 +112,6 @@ ;; Automcompletado (use-package company :defer t - :bind (:map company-active-map - ("" . company-indent-or-complete-common)) ; autocompletar con tab como se haría en bash-competition en la terminal de linux - (:map company-active-map - ("" . company-abort)) ; cerrar las sugerencias de autocompletado precionando escape. :config (global-company-mode) (setq company-dabbrev-downcase nil) ; autocompletado case-sensitive. @@ -202,13 +197,7 @@ ) ;; Autocompletado para el minibuffer (counsel e ivy) -(use-package counsel - :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 counsel :defer t) (use-package projectile :defer t @@ -216,8 +205,6 @@ :config (projectile-mode) :custom ((projectile-completion-system 'ivy)) - :bind-keymap - ("C-c p" . projectile-command-map) :init ;; Rutas de archivos temporales. (setq projectile-cache-file (expand-file-name "projectile.cache" temp-dir)) @@ -253,16 +240,9 @@ ;; Mostrar info del panel inferior de otra manera (use-package ivy :defer t - :bind - ("C-x s" . swiper) - ("C-x C-r" . ivy-resume) - ("C-x b" . ivy-switch-buffer) :config (ivy-mode 1) (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 "") 'minibuffer-keyboard-quit) ) ;; Iconos en Ivy (allthe icons) @@ -286,6 +266,7 @@ (use-package magit :defer t) ;; Auto-inicios de major y minor modes afuera para poder hacer defer +(auto-package-update-maybe) (drag-stuff-global-mode 1) (save-place-mode 1) (global-git-gutter-mode +1) diff --git a/configs/base-keys.el b/configs/base-keys.el index dc758dc..97d3f2d 100644 --- a/configs/base-keys.el +++ b/configs/base-keys.el @@ -54,5 +54,23 @@ ;; Atajo para counsel-proyectile (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 "") '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 "") '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 "") 'company-abort) ; cerrar las sugerencias de autocompletado precionando escape. + (provide 'base-keys) ;;; base-keys.el ends here