Migrate from straight.el to elpaca.
Idk why, I only can try it. For now the emacs-init-time whas improved.
This commit is contained in:
parent
04e3e2ec29
commit
503bf53890
2
.gitignore
vendored
2
.gitignore
vendored
@ -25,3 +25,5 @@ workspace/
|
|||||||
/request/
|
/request/
|
||||||
/smex-items
|
/smex-items
|
||||||
/tree-sitter/
|
/tree-sitter/
|
||||||
|
/elpaca/
|
||||||
|
/tramp
|
||||||
|
@ -20,31 +20,60 @@
|
|||||||
))
|
))
|
||||||
|
|
||||||
;; Instalar straight.el (reemplpazando package.el)
|
;; Instalar straight.el (reemplpazando package.el)
|
||||||
(defvar bootstrap-version)
|
(defvar elpaca-installer-version 0.5)
|
||||||
(let ((bootstrap-file
|
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
|
||||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
|
||||||
(bootstrap-version 5))
|
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
|
||||||
(unless (file-exists-p bootstrap-file)
|
(defvar elpaca-order '(elpaca :repo "https://github.com/progfolio/elpaca.git"
|
||||||
(with-current-buffer
|
:ref nil
|
||||||
(url-retrieve-synchronously
|
:files (:defaults (:exclude "extensions"))
|
||||||
"https://raw.githubusercontent.com/radian-software/straight.el/master/install.el"
|
:build (:not elpaca--activate-package)))
|
||||||
'silent 'inhibit-cookies)
|
(let* ((repo (expand-file-name "elpaca/" elpaca-repos-directory))
|
||||||
(goto-char (point-max))
|
(build (expand-file-name "elpaca/" elpaca-builds-directory))
|
||||||
(eval-print-last-sexp)))
|
(order (cdr elpaca-order))
|
||||||
(load bootstrap-file nil 'nomessage))
|
(default-directory repo))
|
||||||
|
(add-to-list 'load-path (if (file-exists-p build) build repo))
|
||||||
|
(unless (file-exists-p repo)
|
||||||
|
(make-directory repo t)
|
||||||
|
(when (< emacs-major-version 28) (require 'subr-x))
|
||||||
|
(condition-case-unless-debug err
|
||||||
|
(if-let ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*"))
|
||||||
|
((zerop (call-process "git" nil buffer t "clone"
|
||||||
|
(plist-get order :repo) repo)))
|
||||||
|
((zerop (call-process "git" nil buffer t "checkout"
|
||||||
|
(or (plist-get order :ref) "--"))))
|
||||||
|
(emacs (concat invocation-directory invocation-name))
|
||||||
|
((zerop (call-process emacs nil buffer nil "-Q" "-L" "." "--batch"
|
||||||
|
"--eval" "(byte-recompile-directory \".\" 0 'force)")))
|
||||||
|
((require 'elpaca))
|
||||||
|
((elpaca-generate-autoloads "elpaca" repo)))
|
||||||
|
(progn (message "%s" (buffer-string)) (kill-buffer buffer))
|
||||||
|
(error "%s" (with-current-buffer buffer (buffer-string))))
|
||||||
|
((error) (warn "%s" err) (delete-directory repo 'recursive))))
|
||||||
|
(unless (require 'elpaca-autoloads nil t)
|
||||||
|
(require 'elpaca)
|
||||||
|
(elpaca-generate-autoloads "elpaca" repo)
|
||||||
|
(load "./elpaca-autoloads")))
|
||||||
|
(add-hook 'after-init-hook #'elpaca-process-queues)
|
||||||
|
(elpaca `(,@elpaca-order))
|
||||||
|
|
||||||
;; Instalar use-package si no está instalado
|
;; Instalar use-package si no está instalado
|
||||||
(straight-use-package 'use-package)
|
(elpaca elpaca-use-package
|
||||||
(setq use-package-always-ensure t)
|
;; Enable :elpaca use-package keyword.
|
||||||
|
(elpaca-use-package-mode)
|
||||||
|
;; Assume :elpaca t unless otherwise specified.
|
||||||
|
(setq elpaca-use-package-by-default t))
|
||||||
|
|
||||||
|
;; Block until current queue processed.
|
||||||
|
(elpaca-wait)
|
||||||
|
|
||||||
;; Theme
|
;; Theme
|
||||||
(use-package dracula-theme
|
(use-package dracula-theme
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:hook (after-init . (lambda()
|
:init
|
||||||
(load-theme 'dracula t)
|
(load-theme 'dracula t)
|
||||||
|
:config
|
||||||
(set-face-attribute 'default nil :font "Fira Code Retina" :height 112) ; Font
|
(set-face-attribute 'default nil :font "Fira Code Retina" :height 112) ; Font
|
||||||
))
|
|
||||||
)
|
)
|
||||||
|
|
||||||
(defconst private-dir (expand-file-name "private" user-emacs-directory))
|
(defconst private-dir (expand-file-name "private" user-emacs-directory))
|
||||||
@ -119,9 +148,7 @@
|
|||||||
(setup-daemon))))
|
(setup-daemon))))
|
||||||
(message "Corriendo en modo normal."))
|
(message "Corriendo en modo normal."))
|
||||||
|
|
||||||
;(add-hook 'window-setup-hook 'toggle-frame-maximized t)
|
(add-hook 'elpaca-after-init-hook (lambda () (load custom-file 'noerror)))
|
||||||
|
|
||||||
(load custom-file)
|
|
||||||
|
|
||||||
(provide 'init-base)
|
(provide 'init-base)
|
||||||
;;; init-base.el ends here
|
;;; init-base.el ends here
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
(use-package corfu
|
(use-package corfu
|
||||||
:defer t
|
:defer t
|
||||||
:straight (corfu :files (:defaults "extensions/*")
|
:elpaca (:files (:defaults "extensions/*")
|
||||||
:includes (corfu-info corfu-history))
|
:includes (corfu-info corfu-history))
|
||||||
:hook ((after-init . global-corfu-mode)
|
:hook ((after-init . global-corfu-mode)
|
||||||
(corfu-mode . corfu-popupinfo-mode))
|
(corfu-mode . corfu-popupinfo-mode))
|
||||||
@ -38,14 +38,13 @@
|
|||||||
|
|
||||||
(use-package orderless
|
(use-package orderless
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:config
|
:config
|
||||||
(setq completion-styles '(orderless basic)
|
(setq completion-styles '(orderless basic)
|
||||||
completion-category-defaults nil
|
completion-category-defaults nil
|
||||||
completion-category-overrides '((file (styles partial-completion)))))
|
completion-category-overrides '((file (styles partial-completion)))))
|
||||||
|
|
||||||
(use-package cape
|
(use-package cape
|
||||||
:straight (cape :type git :host github :repo "minad/cape")
|
:elpaca (:host github :repo "minad/cape")
|
||||||
:after corfu
|
:after corfu
|
||||||
:init
|
:init
|
||||||
;; (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
;; (advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
||||||
@ -58,7 +57,7 @@
|
|||||||
;; Hacer que corfu funcione en la terminal
|
;; Hacer que corfu funcione en la terminal
|
||||||
(unless (display-graphic-p)
|
(unless (display-graphic-p)
|
||||||
(use-package corfu-terminal
|
(use-package corfu-terminal
|
||||||
:straight (corfu-terminal :type git :repo "https://codeberg.org/akib/emacs-corfu-terminal.git")
|
:elpaca (:repo "https://codeberg.org/akib/emacs-corfu-terminal.git")
|
||||||
:config
|
:config
|
||||||
(corfu-terminal-mode +1))
|
(corfu-terminal-mode +1))
|
||||||
)
|
)
|
||||||
@ -66,7 +65,6 @@
|
|||||||
;; Iconos en corfu
|
;; Iconos en corfu
|
||||||
(use-package kind-icon
|
(use-package kind-icon
|
||||||
:ensure t
|
:ensure t
|
||||||
:straight t
|
|
||||||
:after corfu
|
:after corfu
|
||||||
:custom
|
:custom
|
||||||
(kind-icon-default-face 'corfu-default) ; to compute blended backgrounds correctly
|
(kind-icon-default-face 'corfu-default) ; to compute blended backgrounds correctly
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
(use-package citre
|
(use-package citre
|
||||||
:defer t
|
:defer t
|
||||||
:ensure t
|
:ensure t
|
||||||
:straight t
|
|
||||||
:diminish
|
:diminish
|
||||||
:bind (("C-x c ." . citre-jump)
|
:bind (("C-x c ." . citre-jump)
|
||||||
("C-x c ," . citre-jump-back)
|
("C-x c ," . citre-jump-back)
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
(use-package eglot
|
(use-package eglot
|
||||||
:defer t
|
:defer t
|
||||||
:straight (:type built-in)
|
:elpaca nil
|
||||||
:hook ((css-mode . eglot-ensure)
|
:hook ((css-mode . eglot-ensure)
|
||||||
(html-mode . eglot-ensure)
|
(html-mode . eglot-ensure)
|
||||||
(php-mode . eglot-ensure)
|
(php-mode . eglot-ensure)
|
||||||
@ -50,7 +50,6 @@
|
|||||||
;; Emmet (mientras veo como hacer funcionar emmet-ls)
|
;; Emmet (mientras veo como hacer funcionar emmet-ls)
|
||||||
(use-package emmet-mode
|
(use-package emmet-mode
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:hook
|
:hook
|
||||||
((html-mode . emmet-mode)
|
((html-mode . emmet-mode)
|
||||||
(web-mode . emmet-mode))
|
(web-mode . emmet-mode))
|
||||||
@ -59,7 +58,7 @@
|
|||||||
;; Revisar por errores en el código
|
;; Revisar por errores en el código
|
||||||
(use-package flymake
|
(use-package flymake
|
||||||
:defer t
|
:defer t
|
||||||
:straight (:type built-in)
|
:elpaca nil
|
||||||
:hook (prog-mode . (lambda ()
|
:hook (prog-mode . (lambda ()
|
||||||
(unless (derived-mode-p 'makefile-mode)
|
(unless (derived-mode-p 'makefile-mode)
|
||||||
(flymake-mode))))
|
(flymake-mode))))
|
||||||
@ -70,7 +69,7 @@
|
|||||||
;; Mostar los errores de flymake en un popup-tip
|
;; Mostar los errores de flymake en un popup-tip
|
||||||
(use-package flymake-diagnostic-at-point
|
(use-package flymake-diagnostic-at-point
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
:elpaca t
|
||||||
:after flymake
|
:after flymake
|
||||||
:hook (flymake-mode . flymake-diagnostic-at-point-mode))
|
:hook (flymake-mode . flymake-diagnostic-at-point-mode))
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
;;; Code:
|
;;; Code:
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:hook (after-init . evil-mode)
|
:hook (after-init . evil-mode)
|
||||||
:config
|
:config
|
||||||
;; Configuraciones básicas
|
;; Configuraciones básicas
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
;; Autocompletado y sugerencias para el minibuffer
|
;; Autocompletado y sugerencias para el minibuffer
|
||||||
(use-package counsel
|
(use-package counsel
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:diminish ivy-mode counsel-mode
|
:diminish ivy-mode counsel-mode
|
||||||
:bind (("C-s" . swiper-isearch)
|
:bind (("C-s" . swiper-isearch)
|
||||||
("C-r" . counsel-rg)
|
("C-r" . counsel-rg)
|
||||||
@ -99,7 +98,6 @@
|
|||||||
;; Integración entre projectile y counsel
|
;; Integración entre projectile y counsel
|
||||||
(use-package counsel-projectile
|
(use-package counsel-projectile
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:bind*
|
:bind*
|
||||||
("C-x p" . counsel-projectile)
|
("C-x p" . counsel-projectile)
|
||||||
:hook (counsel-mode . counsel-projectile-mode)
|
:hook (counsel-mode . counsel-projectile-mode)
|
||||||
@ -108,7 +106,6 @@
|
|||||||
;; Autocompletado, sugerencias y menú de búsqueda mejorados (este paquete incluye counsel y swiper)
|
;; Autocompletado, sugerencias y menú de búsqueda mejorados (este paquete incluye counsel y swiper)
|
||||||
(use-package ivy
|
(use-package ivy
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:hook (after-init . ivy-mode)
|
:hook (after-init . ivy-mode)
|
||||||
:config
|
:config
|
||||||
(setq ivy-use-virtual-buffers nil))
|
(setq ivy-use-virtual-buffers nil))
|
||||||
@ -116,7 +113,6 @@
|
|||||||
;; Ivy pero con más detalles en pantalla
|
;; Ivy pero con más detalles en pantalla
|
||||||
(use-package ivy-rich
|
(use-package ivy-rich
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook ((counsel-projectile-mode . ivy-rich-mode) ; MUST after `counsel-projectile'
|
:hook ((counsel-projectile-mode . ivy-rich-mode) ; MUST after `counsel-projectile'
|
||||||
(ivy-rich-mode . ivy-rich-project-root-cache-mode)
|
(ivy-rich-mode . ivy-rich-project-root-cache-mode)
|
||||||
@ -131,19 +127,16 @@
|
|||||||
;; nerd-icons en ivy
|
;; nerd-icons en ivy
|
||||||
(use-package nerd-icons-ivy-rich
|
(use-package nerd-icons-ivy-rich
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook (after-init . nerd-icons-ivy-rich-mode))
|
:hook (after-init . nerd-icons-ivy-rich-mode))
|
||||||
|
|
||||||
;; nerd-icons en ibuffer
|
;; nerd-icons en ibuffer
|
||||||
(use-package nerd-icons-ibuffer
|
(use-package nerd-icons-ibuffer
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:hook (ibuffer-mode . nerd-icons-ibuffer-mode))
|
:hook (ibuffer-mode . nerd-icons-ibuffer-mode))
|
||||||
|
|
||||||
;; Ordenar los comandos usados en M-x (por uso y luego alfabéticamente)
|
;; Ordenar los comandos usados en M-x (por uso y luego alfabéticamente)
|
||||||
(use-package smex
|
(use-package smex
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:after (counsel))
|
:after (counsel))
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
;; org-mode
|
;; org-mode
|
||||||
(use-package org
|
(use-package org
|
||||||
:defer t
|
:defer t
|
||||||
:straight (:type built-in)
|
:elpaca nil
|
||||||
:bind (("C-c a" . org-agenda)
|
:bind (("C-c a" . org-agenda)
|
||||||
("C-c c" . org-capture))
|
("C-c c" . org-capture))
|
||||||
:hook
|
:hook
|
||||||
@ -139,24 +139,23 @@
|
|||||||
(buffer-substring-no-properties (point) (point-max)))
|
(buffer-substring-no-properties (point) (point-max)))
|
||||||
(message "Download of image \"%s\" failed" link)
|
(message "Download of image \"%s\" failed" link)
|
||||||
nil)))
|
nil)))
|
||||||
|
)
|
||||||
|
|
||||||
|
;; Org-yt para soportar embebidos.
|
||||||
|
(use-package org-yt
|
||||||
|
:elpaca (:host github :repo "TobiasZawada/org-yt")
|
||||||
|
:config
|
||||||
(org-link-set-parameters "http" :image-data-fun #'org-http-image-data-fn)
|
(org-link-set-parameters "http" :image-data-fun #'org-http-image-data-fn)
|
||||||
(org-link-set-parameters "https" :image-data-fun #'org-http-image-data-fn)
|
(org-link-set-parameters "https" :image-data-fun #'org-http-image-data-fn)
|
||||||
|
|
||||||
(use-package org-yt
|
|
||||||
:defer t
|
|
||||||
:straight (org-yt :type git :host github :repo "TobiasZawada/org-yt"))
|
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Los head "*" se ven como puntos
|
;; Los head "*" se ven como puntos
|
||||||
(use-package org-bullets
|
(use-package org-bullets
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:hook
|
:hook
|
||||||
(org-mode . org-bullets-mode))
|
(org-mode . org-bullets-mode))
|
||||||
|
|
||||||
(use-package visual-fill-column
|
(use-package visual-fill-column
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:after (org)
|
:after (org)
|
||||||
:config
|
:config
|
||||||
@ -171,7 +170,6 @@
|
|||||||
;; Segundo cerebro: Base de conocimientos en formato Zettelkasten
|
;; Segundo cerebro: Base de conocimientos en formato Zettelkasten
|
||||||
(use-package org-roam
|
(use-package org-roam
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:ensure t
|
:ensure t
|
||||||
:bind (("<f4>" . org-roam-node-insert)
|
:bind (("<f4>" . org-roam-node-insert)
|
||||||
("<f3>" . org-roam-node-find))
|
("<f3>" . org-roam-node-find))
|
||||||
@ -187,7 +185,6 @@
|
|||||||
;; Interface web para navegar en mi base de conocimientos.
|
;; Interface web para navegar en mi base de conocimientos.
|
||||||
(use-package org-roam-ui
|
(use-package org-roam-ui
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(setq org-roam-ui-sync-theme t
|
(setq org-roam-ui-sync-theme t
|
||||||
@ -197,13 +194,11 @@
|
|||||||
|
|
||||||
;; Continúa el formato de la lista cuando presionas enter.
|
;; Continúa el formato de la lista cuando presionas enter.
|
||||||
(use-package org-autolist
|
(use-package org-autolist
|
||||||
:straight t
|
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook (org-mode . org-autolist-mode))
|
:hook (org-mode . org-autolist-mode))
|
||||||
|
|
||||||
;; Emojis en lugar de letras para las prioridades en org-mode.
|
;; Emojis en lugar de letras para las prioridades en org-mode.
|
||||||
(use-package org-fancy-priorities
|
(use-package org-fancy-priorities
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook (org-mode . org-fancy-priorities-mode)
|
:hook (org-mode . org-fancy-priorities-mode)
|
||||||
@ -216,7 +211,6 @@
|
|||||||
|
|
||||||
;; Org mode en modo presentación
|
;; Org mode en modo presentación
|
||||||
(use-package org-present
|
(use-package org-present
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:after (org)
|
:after (org)
|
||||||
:config
|
:config
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
;; Intercamiar buffers de lugar
|
;; Intercamiar buffers de lugar
|
||||||
(use-package buffer-move
|
(use-package buffer-move
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:bind (("M-S-<up>" . buf-move-up)
|
:bind (("M-S-<up>" . buf-move-up)
|
||||||
("M-S-<down>" . buf-move-down)
|
("M-S-<down>" . buf-move-down)
|
||||||
("M-S-<left>" . buf-move-left)
|
("M-S-<left>" . buf-move-left)
|
||||||
@ -26,19 +25,16 @@
|
|||||||
|
|
||||||
;; Mostrar la ayuda de eldoc/documentación en un childframe
|
;; Mostrar la ayuda de eldoc/documentación en un childframe
|
||||||
(use-package eldoc-box
|
(use-package eldoc-box
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:bind ("<f1>" . eldoc-box-help-at-point))
|
:bind ("<f1>" . eldoc-box-help-at-point))
|
||||||
|
|
||||||
;; Seleccionar por regiones (similar a mark-sexp, pero toma en cuenta hacia atrás del cursor también)
|
;; Seleccionar por regiones (similar a mark-sexp, pero toma en cuenta hacia atrás del cursor también)
|
||||||
(use-package expand-region
|
(use-package expand-region
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:bind ("C-+" . er/expand-region))
|
:bind ("C-+" . er/expand-region))
|
||||||
|
|
||||||
;; Major mode para archivos CSV
|
;; Major mode para archivos CSV
|
||||||
(use-package csv-mode
|
(use-package csv-mode
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:hook ((csv-mode . csv-align-mode)
|
:hook ((csv-mode . csv-align-mode)
|
||||||
(csv-mode . csv-header-line))
|
(csv-mode . csv-header-line))
|
||||||
@ -46,7 +42,6 @@
|
|||||||
|
|
||||||
;; Un bonito y sencillo panel de inicio
|
;; Un bonito y sencillo panel de inicio
|
||||||
(use-package dashboard
|
(use-package dashboard
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:init
|
:init
|
||||||
(dashboard-setup-startup-hook)
|
(dashboard-setup-startup-hook)
|
||||||
@ -66,7 +61,6 @@
|
|||||||
|
|
||||||
;; Sidebar a la derecha con los archivos
|
;; Sidebar a la derecha con los archivos
|
||||||
(use-package dired-sidebar
|
(use-package dired-sidebar
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:hook (dired-mode . hl-line-mode)
|
:hook (dired-mode . hl-line-mode)
|
||||||
:ensure t
|
:ensure t
|
||||||
@ -81,18 +75,16 @@
|
|||||||
;; Mover líneas o regiones
|
;; Mover líneas o regiones
|
||||||
(use-package drag-stuff
|
(use-package drag-stuff
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:hook
|
:hook
|
||||||
(after-init . drag-stuff-global-mode)
|
(elpaca-after-init . drag-stuff-global-mode)
|
||||||
:config
|
:config
|
||||||
(drag-stuff-define-keys))
|
(drag-stuff-define-keys))
|
||||||
|
|
||||||
;; La línea bonita esa de abajo
|
;; La línea bonita esa de abajo
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:ensure t
|
:ensure t
|
||||||
:hook (after-init . doom-modeline-mode)
|
:hook (elpaca-after-init . doom-modeline-mode)
|
||||||
:config
|
:config
|
||||||
(setq doom-modeline-project-detection 'auto
|
(setq doom-modeline-project-detection 'auto
|
||||||
doom-modeline-buffer-file-name-style 'relative-from-project
|
doom-modeline-buffer-file-name-style 'relative-from-project
|
||||||
@ -104,21 +96,19 @@
|
|||||||
;; Emparejamiento automático de comillas, paréntesis, corchetes y llaves
|
;; Emparejamiento automático de comillas, paréntesis, corchetes y llaves
|
||||||
(use-package electric-pair
|
(use-package electric-pair
|
||||||
:defer t
|
:defer t
|
||||||
:straight (:type built-in)
|
:elpaca nil
|
||||||
:hook (after-init . electric-pair-mode)
|
:hook (elpaca-after-init . electric-pair-mode)
|
||||||
:config
|
:config
|
||||||
(setq electric-pair-delete-adjacent-pairs nil))
|
(setq electric-pair-delete-adjacent-pairs nil))
|
||||||
|
|
||||||
;; Git Gutter - Marca a la izq. si una linea ha sido agregada, editada o eliminada desde el último commit.
|
;; Git Gutter - Marca a la izq. si una linea ha sido agregada, editada o eliminada desde el último commit.
|
||||||
(use-package git-gutter
|
(use-package git-gutter
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:hook
|
:hook
|
||||||
(after-init . global-git-gutter-mode))
|
(elpaca-after-init . global-git-gutter-mode))
|
||||||
|
|
||||||
;; Resalta los escapes de secuencia
|
;; Resalta los escapes de secuencia
|
||||||
(use-package highlight-escape-sequences
|
(use-package highlight-escape-sequences
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:hook (prog-mode . hes-mode)
|
:hook (prog-mode . hes-mode)
|
||||||
:config
|
:config
|
||||||
@ -141,7 +131,6 @@
|
|||||||
|
|
||||||
;; Mostrar lo que se está presionando en pantalla
|
;; Mostrar lo que se está presionando en pantalla
|
||||||
(use-package keypression
|
(use-package keypression
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(setq keypression-use-child-frame t
|
(setq keypression-use-child-frame t
|
||||||
@ -157,23 +146,19 @@
|
|||||||
|
|
||||||
;; Generador automatizado de archivos de licencia
|
;; Generador automatizado de archivos de licencia
|
||||||
(use-package license-templates
|
(use-package license-templates
|
||||||
:straight t
|
|
||||||
:defer t)
|
:defer t)
|
||||||
|
|
||||||
;; Magia para git
|
;; Magia para git
|
||||||
(use-package magit
|
(use-package magit
|
||||||
:defer t
|
:defer t)
|
||||||
:straight t)
|
|
||||||
|
|
||||||
;; Modo markdown
|
;; Modo markdown
|
||||||
(use-package markdown-mode
|
(use-package markdown-mode
|
||||||
:defer t
|
:defer t)
|
||||||
:straight t)
|
|
||||||
|
|
||||||
;; Multiple vterm
|
;; Multiple vterm
|
||||||
(use-package multi-vterm
|
(use-package multi-vterm
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:bind* (("<f5>" . multi-vterm-dedicated-toggle)
|
:bind* (("<f5>" . multi-vterm-dedicated-toggle)
|
||||||
("C-x tt" . multi-vterm-dedicated-toggle)
|
("C-x tt" . multi-vterm-dedicated-toggle)
|
||||||
("C-x tf" . multi-vterm)
|
("C-x tf" . multi-vterm)
|
||||||
@ -184,19 +169,16 @@
|
|||||||
|
|
||||||
;; Iconos bonitos para varias cosas
|
;; Iconos bonitos para varias cosas
|
||||||
(use-package nerd-icons
|
(use-package nerd-icons
|
||||||
:straight t
|
|
||||||
:defer t)
|
:defer t)
|
||||||
|
|
||||||
;; Usar nerd-icons en dired
|
;; Usar nerd-icons en dired
|
||||||
(use-package nerd-icons-dired
|
(use-package nerd-icons-dired
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:hook (dired-mode . nerd-icons-dired-mode))
|
:hook (dired-mode . nerd-icons-dired-mode))
|
||||||
|
|
||||||
;; Mecanografía
|
;; Mecanografía
|
||||||
(use-package speed-type
|
(use-package speed-type
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:diminish
|
:diminish
|
||||||
:config
|
:config
|
||||||
(setq speed-type-gb-book-list '(66867 66866 66591 57303)
|
(setq speed-type-gb-book-list '(66867 66866 66591 57303)
|
||||||
@ -205,13 +187,11 @@
|
|||||||
|
|
||||||
;; Des-minifica / ordena el código
|
;; Des-minifica / ordena el código
|
||||||
(use-package prettier
|
(use-package prettier
|
||||||
:defer t
|
:defer t)
|
||||||
:straight t)
|
|
||||||
|
|
||||||
;; Paquete para manejo de proyectos
|
;; Paquete para manejo de proyectos
|
||||||
(use-package projectile
|
(use-package projectile
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:bind ("C-c p" . projectile-command-map)
|
:bind ("C-c p" . projectile-command-map)
|
||||||
:diminish projectile-mode
|
:diminish projectile-mode
|
||||||
:custom ((projectile-completion-system 'ivy))
|
:custom ((projectile-completion-system 'ivy))
|
||||||
@ -260,7 +240,7 @@
|
|||||||
;; Recentf - Guarda registro de los archivos abiertos recientemente
|
;; Recentf - Guarda registro de los archivos abiertos recientemente
|
||||||
(use-package recentf
|
(use-package recentf
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
:elpaca nil
|
||||||
:bind ("C-x C-r" . recentf-open-files)
|
:bind ("C-x C-r" . recentf-open-files)
|
||||||
:config
|
:config
|
||||||
(setq recentf-save-file
|
(setq recentf-save-file
|
||||||
@ -270,9 +250,8 @@
|
|||||||
;; Busqueda rápida con ripgrep
|
;; Busqueda rápida con ripgrep
|
||||||
(use-package rg
|
(use-package rg
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:defines projectile-command-map
|
:defines projectile-command-map
|
||||||
:hook (after-init . rg-enable-default-bindings)
|
:hook (elpaca-after-init . rg-enable-default-bindings)
|
||||||
:bind (:map rg-global-map
|
:bind (:map rg-global-map
|
||||||
("c" . rg-dwim-current-dir)
|
("c" . rg-dwim-current-dir)
|
||||||
("f" . rg-dwim-current-file)
|
("f" . rg-dwim-current-file)
|
||||||
@ -287,8 +266,8 @@
|
|||||||
|
|
||||||
;; Guardar la posición del cursor en un archivo para volver allí cuando se lo vuelva a abrir.
|
;; Guardar la posición del cursor en un archivo para volver allí cuando se lo vuelva a abrir.
|
||||||
(use-package saveplace
|
(use-package saveplace
|
||||||
:straight t
|
:elpaca nil
|
||||||
:hook (after-init . save-place-mode)
|
:hook (elpaca-after-init . save-place-mode)
|
||||||
:config
|
:config
|
||||||
(setq save-place-file (locate-user-emacs-file (concat temp-dir "/places"))))
|
(setq save-place-file (locate-user-emacs-file (concat temp-dir "/places"))))
|
||||||
|
|
||||||
@ -296,13 +275,12 @@
|
|||||||
(use-package silicon
|
(use-package silicon
|
||||||
:ensure t
|
:ensure t
|
||||||
:defer t
|
:defer t
|
||||||
:straight (silicon :type git :host github :repo "iensu/silicon-el"))
|
:elpaca (:host github :repo "iensu/silicon-el"))
|
||||||
|
|
||||||
;; Mejorando el scroll
|
;; Mejorando el scroll
|
||||||
(use-package smooth-scrolling
|
(use-package smooth-scrolling
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
:hook (elpaca-after-init . smooth-scrolling-mode)
|
||||||
:hook (after-init . smooth-scrolling-mode)
|
|
||||||
:config
|
:config
|
||||||
(setq mouse-wheel-scroll-amount
|
(setq mouse-wheel-scroll-amount
|
||||||
'(8 ((shift) . 1) ((control) . nil))) ; Cambia el scroll a 8 líneas a la vez, 1 cuando se preciona SHIFT y saltos de página cuando presionas CTRL
|
'(8 ((shift) . 1) ((control) . nil))) ; Cambia el scroll a 8 líneas a la vez, 1 cuando se preciona SHIFT y saltos de página cuando presionas CTRL
|
||||||
@ -312,8 +290,7 @@
|
|||||||
;; Ayuda a manipular los archivos con líneas demasiado largas
|
;; Ayuda a manipular los archivos con líneas demasiado largas
|
||||||
(use-package so-long
|
(use-package so-long
|
||||||
:defer t
|
:defer t
|
||||||
:straight (:type built-in)
|
:elpaca nil
|
||||||
;; :hook (after-init . global-so-long-mode)
|
|
||||||
:bind (:map so-long-mode-map
|
:bind (:map so-long-mode-map
|
||||||
("C-s" . isearch-forward)
|
("C-s" . isearch-forward)
|
||||||
("C-r" . isearch-backward))
|
("C-r" . isearch-backward))
|
||||||
@ -332,7 +309,7 @@
|
|||||||
;; Tree-sitter :)
|
;; Tree-sitter :)
|
||||||
(use-package treesit
|
(use-package treesit
|
||||||
:defer t
|
:defer t
|
||||||
:straight (:type built-in)
|
:elpaca nil
|
||||||
:commands (treesit-install-language-grammar nf/treesit-install-all-languages)
|
:commands (treesit-install-language-grammar nf/treesit-install-all-languages)
|
||||||
:config
|
:config
|
||||||
(setq treesit-language-source-alist
|
(setq treesit-language-source-alist
|
||||||
@ -367,38 +344,37 @@
|
|||||||
|
|
||||||
;; Cuando presionas enter en un bloque de comentario sigue el estilo del bloque.
|
;; Cuando presionas enter en un bloque de comentario sigue el estilo del bloque.
|
||||||
(use-package vs-comment-return
|
(use-package vs-comment-return
|
||||||
:straight (vs-comment-return :type git :host github :repo "emacs-vs/vs-comment-return")
|
:elpaca (:host github :repo "emacs-vs/vs-comment-return")
|
||||||
:defer t
|
:defer t
|
||||||
:hook (prog-mode . vs-comment-return-mode)
|
:hook (prog-mode . vs-comment-return-mode)
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Mostrar el último commit que modificó la linea actual
|
;; Mostrar el último commit que modificó la linea actual
|
||||||
(use-package vc-msg
|
(use-package vc-msg
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:bind (("C-c v" . vc-msg-show)
|
:bind (("C-c v" . vc-msg-show)
|
||||||
("C-c C-v" . vc-msg-show))
|
("C-c C-v" . vc-msg-show))
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Terminal
|
;; Terminal
|
||||||
(use-package vterm :ensure t :defer t :straight t)
|
(use-package vterm
|
||||||
|
:ensure t
|
||||||
|
:defer t)
|
||||||
|
|
||||||
;; Cuando iniicias un atajo de teclas te muestra las posibilidades
|
;; Cuando iniicias un atajo de teclas te muestra las posibilidades
|
||||||
(use-package which-key
|
(use-package which-key
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
:hook (elpaca-after-init . which-key-mode))
|
||||||
:hook (after-init . which-key-mode))
|
|
||||||
|
|
||||||
;; Restaurar el estado de los frames
|
;; Restaurar el estado de los frames
|
||||||
(use-package winner
|
(use-package winner
|
||||||
|
:elpaca nil
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
:hook (elpaca-after-init . winner-mode))
|
||||||
:hook (after-init . winner-mode))
|
|
||||||
|
|
||||||
;; Emacs Start Up Profiler
|
;; Emacs Start Up Profiler
|
||||||
(use-package esup
|
(use-package esup
|
||||||
:ensure t
|
:defer t)
|
||||||
:straight t)
|
|
||||||
|
|
||||||
(provide 'init-packages)
|
(provide 'init-packages)
|
||||||
;;; init-packages.el ends here
|
;;; init-packages.el ends here
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(use-package go-mode
|
(use-package go-mode
|
||||||
:straight t
|
|
||||||
:defer t)
|
:defer t)
|
||||||
|
|
||||||
(provide 'lang-go)
|
(provide 'lang-go)
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(use-package web-mode
|
(use-package web-mode
|
||||||
:straight t
|
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(setq web-mode-markup-indent-offset 2
|
(setq web-mode-markup-indent-offset 2
|
||||||
@ -23,7 +22,7 @@
|
|||||||
|
|
||||||
|
|
||||||
(use-package auto-rename-tag
|
(use-package auto-rename-tag
|
||||||
:straight t (auto-rename-tag :type git :host github :repo "jcs-elpa/auto-rename-tag")
|
:elpaca (:host github :repo "jcs-elpa/auto-rename-tag")
|
||||||
:defer t
|
:defer t
|
||||||
:hook ((html-mode . auto-rename-tag-mode)
|
:hook ((html-mode . auto-rename-tag-mode)
|
||||||
(web-mode . auto-rename-tag-mode))
|
(web-mode . auto-rename-tag-mode))
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
(use-package js
|
(use-package js
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
:elpaca nil
|
||||||
:mode
|
:mode
|
||||||
("\\.js$" . js-mode)
|
("\\.js$" . js-mode)
|
||||||
:hook
|
:hook
|
||||||
@ -22,7 +22,6 @@
|
|||||||
;; json-mode
|
;; json-mode
|
||||||
(use-package json-mode
|
(use-package json-mode
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:ensure t
|
:ensure t
|
||||||
:mode
|
:mode
|
||||||
("\\.json$" . json-mode)
|
("\\.json$" . json-mode)
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
(use-package php-mode
|
(use-package php-mode
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:bind ("C-c d b" . kj/php-doc-block)
|
:bind ("C-c d b" . kj/php-doc-block)
|
||||||
:config
|
:config
|
||||||
(defun kj/php-doc-block ()
|
(defun kj/php-doc-block ()
|
||||||
@ -28,7 +27,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
(use-package php-doc-block
|
(use-package php-doc-block
|
||||||
:straight (php-doc-block :type git :host github :repo "moskalyovd/emacs-php-doc-block")
|
:elpaca (:host github :repo "moskalyovd/emacs-php-doc-block")
|
||||||
)
|
)
|
||||||
|
|
||||||
(provide 'lang-php)
|
(provide 'lang-php)
|
||||||
|
@ -11,21 +11,9 @@
|
|||||||
|
|
||||||
(use-package rust-mode
|
(use-package rust-mode
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
(setq rust-format-on-save t))
|
(setq rust-format-on-save t))
|
||||||
|
|
||||||
;; Rustic es necesario solamente si se usa lsp-mode + flycheck.
|
|
||||||
;; (use-package rustic
|
|
||||||
;; :defer t
|
|
||||||
;; :straight t
|
|
||||||
;; :ensure t
|
|
||||||
;; :config
|
|
||||||
;; ;;(setq rustic-lsp-server 'rls)
|
|
||||||
;; (setq rustic-lsp-client 'lsp)
|
|
||||||
;; ;;(setq rustic-lsp-client nil)
|
|
||||||
;; (push 'rustic-clippy flycheck-checkers))
|
|
||||||
|
|
||||||
(provide 'lang-rust)
|
(provide 'lang-rust)
|
||||||
;;; lang-rust.el ends here
|
;;; lang-rust.el ends here
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
(setq gc-cons-percentage (get 'gc-cons-percentage 'value-during-init))
|
(setq gc-cons-percentage (get 'gc-cons-percentage 'value-during-init))
|
||||||
|
|
||||||
;; Color de fondo similar al theme para evitar que se vea blanco al iniciar
|
;; Color de fondo similar al theme para evitar que se vea blanco al iniciar
|
||||||
(add-to-list 'default-frame-alist '(background-color . "#282a36"))
|
;; (add-to-list 'default-frame-alist '(background-color . "#282a36"))
|
||||||
|
|
||||||
;; Permitir solo la búsqueda de archivos a cargar en la config en case sensitive.
|
;; Permitir solo la búsqueda de archivos a cargar en la config en case sensitive.
|
||||||
(setq auto-mode-case-fold nil)
|
(setq auto-mode-case-fold nil)
|
||||||
@ -46,6 +46,14 @@
|
|||||||
;; (add-to-list 'initial-frame-alist '(fullscreen . maximized)) ; frame inicial
|
;; (add-to-list 'initial-frame-alist '(fullscreen . maximized)) ; frame inicial
|
||||||
;; (add-to-list 'default-frame-alist '(fullscreen . maximized)) ; Cada frame
|
;; (add-to-list 'default-frame-alist '(fullscreen . maximized)) ; Cada frame
|
||||||
(add-hook 'window-setup-hook 'toggle-frame-maximized t) ; Hacerlo mediante window-setup-hook (se maximiza al terminar de cargar la ventana)
|
(add-hook 'window-setup-hook 'toggle-frame-maximized t) ; Hacerlo mediante window-setup-hook (se maximiza al terminar de cargar la ventana)
|
||||||
|
(push '(ns-transparent-titlebar . t) default-frame-alist)
|
||||||
|
|
||||||
|
;; Resizing the Emacs frame can be a terribly expensive part of changing the
|
||||||
|
;; font. By inhibiting this, we easily halve startup times with fonts that are
|
||||||
|
;; larger than the system default.
|
||||||
|
(setq frame-inhibit-implied-resize t
|
||||||
|
frame-resize-pixelwise t)
|
||||||
|
|
||||||
|
|
||||||
;; Recommended by
|
;; Recommended by
|
||||||
;; https://github.com/raxod502/straight.el#getting-started to prevent
|
;; https://github.com/raxod502/straight.el#getting-started to prevent
|
||||||
|
Loading…
Reference in New Issue
Block a user