2022-06-01 15:18:06 +02:00
|
|
|
;;; init.el --- Init de emacs ordenado -*- lexical-binding: t -*-
|
2022-03-30 01:21:13 +02:00
|
|
|
|
|
|
|
;; Author: kj <webmaster@outcontrol.net>
|
|
|
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
;; Desde aquí se cargan todos los archivos de la carpeta config.
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
2022-06-01 15:18:06 +02:00
|
|
|
;; Mejorar el tiempo de carga
|
|
|
|
(setq auto-mode-case-fold nil)
|
|
|
|
|
|
|
|
(unless (or (daemonp) noninteractive)
|
|
|
|
(let ((old-file-name-handler-alist file-name-handler-alist))
|
|
|
|
;; If `file-name-handler-alist' is nil, no 256 colors in TUI
|
|
|
|
;; @see https://emacs-china.org/t/spacemacs-centaur-emacs/3802/839
|
|
|
|
(setq file-name-handler-alist
|
|
|
|
(unless (display-graphic-p)
|
|
|
|
'(("\\(?:\\.tzst\\|\\.zst\\|\\.dz\\|\\.txz\\|\\.xz\\|\\.lzma\\|\\.lz\\|\\.g?z\\|\\.\\(?:tgz\\|svgz\\|sifz\\)\\|\\.tbz2?\\|\\.bz2\\|\\.Z\\)\\(?:~\\|\\.~[-[:alnum:]:#@^._]+\\(?:~[[:digit:]]+\\)?~\\)?\\'" . jka-compr-handler))))
|
|
|
|
(add-hook 'emacs-startup-hook
|
|
|
|
(lambda ()
|
|
|
|
"Recover file name handlers."
|
|
|
|
(setq file-name-handler-alist
|
|
|
|
(delete-dups (append file-name-handler-alist
|
|
|
|
old-file-name-handler-alist)))))))
|
|
|
|
|
|
|
|
(setq gc-cons-threshold most-positive-fixnum
|
|
|
|
gc-cons-percentage 0.5)
|
|
|
|
(add-hook 'emacs-startup-hook
|
|
|
|
(lambda ()
|
|
|
|
"Recover GC values after startup."
|
2022-06-09 10:14:23 +02:00
|
|
|
(setq gc-cons-threshold 800000
|
2022-06-01 15:18:06 +02:00
|
|
|
gc-cons-percentage 0.1)))
|
|
|
|
|
|
|
|
;; Cargar configuraciones
|
|
|
|
|
2022-03-30 01:21:13 +02:00
|
|
|
(add-to-list 'load-path (concat user-emacs-directory "configs"))
|
|
|
|
|
2022-06-01 15:18:06 +02:00
|
|
|
;; Paquetes base
|
2022-03-30 01:21:13 +02:00
|
|
|
(require 'base)
|
|
|
|
(require 'base-extensions)
|
|
|
|
(require 'base-functions)
|
2022-06-01 15:18:06 +02:00
|
|
|
(require 'base-org)
|
|
|
|
(require 'base-lsp)
|
|
|
|
(require 'base-company)
|
2022-06-09 09:53:59 +02:00
|
|
|
(require 'base-treemacs)
|
2022-06-01 15:18:06 +02:00
|
|
|
(require 'base-ctags)
|
|
|
|
(require 'base-ivy)
|
2022-03-30 01:21:13 +02:00
|
|
|
(require 'base-keys)
|
|
|
|
|
2022-06-01 15:18:06 +02:00
|
|
|
;; Lenguajes
|
2022-03-30 01:21:13 +02:00
|
|
|
(require 'lang-php)
|
|
|
|
(require 'lang-js)
|
|
|
|
(require 'lang-go)
|
2022-05-06 23:29:24 +02:00
|
|
|
(require 'lang-rust)
|
2022-03-30 01:21:13 +02:00
|
|
|
|
|
|
|
(provide 'init)
|
|
|
|
;;; init.el ends here
|