Improve startup time.
This commit is contained in:
parent
811ff581cf
commit
0b14aeba36
@ -33,19 +33,6 @@
|
|||||||
(eval-print-last-sexp)))
|
(eval-print-last-sexp)))
|
||||||
(load bootstrap-file nil 'nomessage))
|
(load bootstrap-file nil 'nomessage))
|
||||||
|
|
||||||
;; Initialize package sources
|
|
||||||
;; (require 'package)
|
|
||||||
|
|
||||||
;; (setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
|
||||||
;; ("org" . "https://orgmode.org/elpa/")
|
|
||||||
;; ("elpa" . "https://elpa.gnu.org/packages/")))
|
|
||||||
|
|
||||||
;; (package-initialize)
|
|
||||||
|
|
||||||
;; Actualizar repositorios si aún no esta actualizados
|
|
||||||
;; (unless package-archive-contents
|
|
||||||
;; (package-refresh-contents))
|
|
||||||
|
|
||||||
;; Instalar use-package si no está instalado
|
;; Instalar use-package si no está instalado
|
||||||
(straight-use-package 'use-package)
|
(straight-use-package 'use-package)
|
||||||
(setq use-package-always-ensure t)
|
(setq use-package-always-ensure t)
|
||||||
@ -53,14 +40,12 @@
|
|||||||
;; Theme
|
;; Theme
|
||||||
(use-package dracula-theme
|
(use-package dracula-theme
|
||||||
:straight t
|
:straight t
|
||||||
:config
|
:defer t
|
||||||
|
:hook (after-init . (lambda()
|
||||||
(load-theme 'dracula t)
|
(load-theme 'dracula t)
|
||||||
(set-face-attribute 'default nil :font "Fira Code Retina" :height 112) ; Font
|
(set-face-attribute 'default nil :font "Fira Code Retina" :height 112) ; Font
|
||||||
)
|
))
|
||||||
|
)
|
||||||
;; Instalar use-package en caso de no tenerlo
|
|
||||||
;;(unless (package-installed-p 'use-package)
|
|
||||||
;; (package-install 'use-package))
|
|
||||||
|
|
||||||
(defconst private-dir (expand-file-name "private" user-emacs-directory))
|
(defconst private-dir (expand-file-name "private" user-emacs-directory))
|
||||||
(defconst temp-dir (format "%s/cache" private-dir)
|
(defconst temp-dir (format "%s/cache" private-dir)
|
||||||
@ -76,8 +61,6 @@
|
|||||||
(setq default-process-coding-system '(utf-8-unix . utf-8-unix))
|
(setq default-process-coding-system '(utf-8-unix . utf-8-unix))
|
||||||
|
|
||||||
;; Emacs customizations
|
;; Emacs customizations
|
||||||
(menu-bar-mode 0) ; Quitar menús.
|
|
||||||
(tool-bar-mode 0) ; Quitar toolbar.
|
|
||||||
(scroll-bar-mode -1) ; Quitar scrollbar.
|
(scroll-bar-mode -1) ; Quitar scrollbar.
|
||||||
(tooltip-mode -1) ; Disable tooltips.
|
(tooltip-mode -1) ; Disable tooltips.
|
||||||
(global-display-line-numbers-mode) ; Mostar número de línea.
|
(global-display-line-numbers-mode) ; Mostar número de línea.
|
||||||
|
@ -51,8 +51,10 @@
|
|||||||
;; Un bonito y sencillo panel de inicio
|
;; Un bonito y sencillo panel de inicio
|
||||||
(use-package dashboard
|
(use-package dashboard
|
||||||
:straight t
|
:straight t
|
||||||
:config
|
:defer t
|
||||||
|
:init
|
||||||
(dashboard-setup-startup-hook)
|
(dashboard-setup-startup-hook)
|
||||||
|
:config
|
||||||
(setq dashboard-set-file-icons t
|
(setq dashboard-set-file-icons t
|
||||||
dashboard-set-heading-icons t
|
dashboard-set-heading-icons t
|
||||||
dashboard-set-file-icons t
|
dashboard-set-file-icons t
|
||||||
@ -311,9 +313,9 @@
|
|||||||
:hook (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
|
:ensure t
|
||||||
;; :straight t)
|
:straight t)
|
||||||
|
|
||||||
(provide 'init-packages)
|
(provide 'init-packages)
|
||||||
;;; init-packages.el ends here
|
;;; init-packages.el ends here
|
||||||
|
@ -32,9 +32,16 @@
|
|||||||
(add-hook 'after-init-hook #'restore-gc-cons-percentage-after-init)
|
(add-hook 'after-init-hook #'restore-gc-cons-percentage-after-init)
|
||||||
(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 al iniciar
|
||||||
|
(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)
|
||||||
|
|
||||||
|
;; Personalizaciones (Tedrían que ir en init-base, pero por optimización las pongo acá)
|
||||||
|
(push '(menu-bar-lines . 0) default-frame-alist) ; Quitar menús.
|
||||||
|
(push '(tool-bar-lines . 0) default-frame-alist) ; Quitar toolbar.
|
||||||
|
|
||||||
;; Iniciar emacs maximizado
|
;; Iniciar emacs maximizado
|
||||||
(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
|
||||||
|
Loading…
Reference in New Issue
Block a user