Compare commits

..

No commits in common. "dc74b4bde0de5beb9eeaace46b4cc058410fbfd7" and "051e902d6459587b3f850edca5aa0e25060dadea" have entirely different histories.

13 changed files with 67 additions and 88 deletions

View File

@ -1,4 +1,4 @@
;;; init-company.el --- Autocompletado con company-mode -*- lexical-binding: t -*-
;;; base-company.el --- Autocompletado con company-mode -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
@ -346,5 +346,5 @@
(Template . ,(all-the-icons-material "format_align_left" :height 1.0 :v-adjust -0.2)))
company-box-icons-alist 'company-box-icons-all-the-icons))))
(provide 'init-company)
;;; init-company.el ends here
(provide 'base-company)
;;; base-company.el ends here

View File

@ -1,4 +1,4 @@
;;; init-ctags.el --- Configuracíón de TAGS -*- lexical-binding: t -*-
;;; base-ctags.el --- Configuracíón de TAGS -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
@ -47,10 +47,8 @@
(defun lsp-citre-capf-function ()
"A capf backend that tries lsp first, then Citre."
(let ((lsp-result (if (fboundp #'eglot-completion-at-point)
(eglot-completion-at-point)
(when (fboundp #'lsp-completion-at-point)
(lsp-completion-at-point)))))
(let ((lsp-result (if (bound-and-true-p lsp-mode)
(lsp-completion-at-point))))
(if (and lsp-result
(try-completion
(buffer-substring (nth 0 lsp-result)
@ -66,5 +64,5 @@
(add-hook 'citre-mode-hook #'enable-lsp-citre-capf-backend)
))
(provide 'init-ctags)
;;; init-ctags.el ends here
(provide 'base-ctags)
;;; base-ctags.el ends here

View File

@ -1,4 +1,4 @@
;;; init-extensions.el --- Extensiones/paquetes instalados y su configuración -*- lexical-binding: t -*-
;;; base-extensions.el --- Extensiones/paquetes instalados y su configuración -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
@ -26,8 +26,7 @@
(use-package dashboard
:defer t
:straight t
;; :hook (after-init . dashboard-setup-startup-hook)
:hook (after-init . org-agenda-list)
:hook (after-init . dashboard-setup-startup-hook)
:config
(setq dashboard-set-file-icons t
dashboard-set-heading-icons t
@ -104,12 +103,12 @@
:hook
(after-init . global-git-gutter-mode))
;; (use-package gcmh
;; :defer t
;; :straight t
;; :init
;; (setq gcmh-high-cons-threshold 100000000)
;; (gcmh-mode 1))
(use-package gcmh
:defer t
:straight t
:init
(setq gcmh-high-cons-threshold 100000000)
(gcmh-mode 1))
;; Highlight en los números.
;; (use-package highlight-numbers
@ -350,5 +349,5 @@
:ensure t
:straight t)
(provide 'init-extensions)
;;; init-extensions.el ends here
(provide 'base-extensions)
;;; base-extensions.el ends here

View File

@ -1,4 +1,4 @@
;;; init-functions.el --- Configuración de org-mode -*- lexical-binding: t -*-
;;; base-functions.el --- Configuración de org-mode -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
@ -63,5 +63,5 @@ Saves to a temp file and puts the filename in the kill ring."
(or (featurep 'all-the-icons)
(require 'all-the-icons nil t))))
(provide 'init-functions)
;;; init-functions.el ends here.
(provide 'base-functions)
;;; base-functions.el ends here.

View File

@ -1,4 +1,4 @@
;;; init-ivy.el --- Ayuditas y autocompletado del minibufer -*- lexical-binding: t -*-
;;; base-ivy.el --- Ayuditas y autocompletado del minibufer -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
@ -148,5 +148,5 @@
:straight t
:bind ("C-c C-y" . ivy-yasnippet))
(provide 'init-ivy)
;;; init-ivy.el ends here
(provide 'base-ivy)
;;; base-ivy.el ends here

View File

@ -1,4 +1,4 @@
;;; init-keys.el --- Archivo de configuración de atajos -*- lexical-binding: t -*-
;;; base-keys.el --- Archivo de configuración de atajos -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
@ -40,5 +40,5 @@
;; Deactivar el abrir *messages* al cliquear en el minibuffer
(define-key minibuffer-inactive-mode-map [mouse-1] #'ignore)
(provide 'init-keys)
;;; init-keys.el ends here
(provide 'base-keys)
;;; base-keys.el ends here

View File

@ -1,4 +1,4 @@
;;; init-lsp.el --- Languaje server protocol. -*- lexical-binding: t -*-
;;; base-lsp.el --- Languaje server protocol. -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
@ -230,21 +230,6 @@
:straight t
:hook (java-mode . (lambda () (require 'lsp-java))))
;; `lsp-mode' and `treemacs' integration
(use-package lsp-treemacs
:defer t
:straight t
:after lsp-mode
:bind (:map lsp-mode-map
("C-<f8>" . lsp-treemacs-errors-list)
("M-<f8>" . lsp-treemacs-symbols)
("s-<f8>" . lsp-treemacs-java-deps-list))
:init (lsp-treemacs-sync-mode 1)
:config
(with-eval-after-load 'ace-window
(when (boundp 'aw-ignored-buffers)
(push 'lsp-treemacs-symbols-mode aw-ignored-buffers)
(push 'lsp-treemacs-java-deps-mode aw-ignored-buffers))))
(provide 'init-lsp)
;;; init-lsp.el ends here
(provide 'base-lsp)
;;; base-lsp.el ends here

View File

@ -1,4 +1,4 @@
;;; init-config.el --- Configuración de org-mode -*- lexical-binding: t -*-
;;; base-config.el --- Configuración de org-mode -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
@ -37,6 +37,7 @@
(use-package org
:defer t
:ensure t
:straight (:type built-in)
:bind (("C-c a" . org-agenda)
("C-c x" . org-capture))
@ -184,5 +185,5 @@
:ensure t
:hook (org-mode . org-autolist-mode))
(provide 'init-org)
;;; init-org.el ends here
(provide 'base-org)
;;; base-org.el ends here

View File

@ -1,4 +1,4 @@
;;; init-treemacs.el --- Extensiones/paquetes instalados y su configuración -*- lexical-binding: t -*-
;;; base-treemacs.el --- Extensiones/paquetes instalados y su configuración -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
@ -56,5 +56,21 @@
magit-post-unstage)
. treemacs-magit--schedule-update))
(provide 'init-treemacs)
;;; init-treemacs.el ends here
;; `lsp-mode' and `treemacs' integration
(use-package lsp-treemacs
:defer t
:straight t
:after lsp-mode
:bind (:map lsp-mode-map
("C-<f8>" . lsp-treemacs-errors-list)
("M-<f8>" . lsp-treemacs-symbols)
("s-<f8>" . lsp-treemacs-java-deps-list))
:init (lsp-treemacs-sync-mode 1)
:config
(with-eval-after-load 'ace-window
(when (boundp 'aw-ignored-buffers)
(push 'lsp-treemacs-symbols-mode aw-ignored-buffers)
(push 'lsp-treemacs-java-deps-mode aw-ignored-buffers))))
(provide 'base-treemacs)
;;; base-treemacs.el ends here

View File

@ -1,4 +1,4 @@
;;; init-base.el --- Configuración base de emacs -*- lexical-binding: t -*-
;;; base.el --- Configuración base de emacs -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
@ -145,5 +145,5 @@
(load custom-file)
(provide 'init-base)
;;; init-base.el ends here
(provide 'base)
;;; base.el ends here

View File

@ -1,18 +0,0 @@
;;; init-eglot.el --- Configuración de eglot (LSP) -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
;;; Commentary:
;;; Code:
(use-package eglot
:defer t
:straight (:type built-in)
:config
(add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio")))
)
(provide 'init-eglot)
;;; init-eglot.el ends here

View File

@ -14,8 +14,7 @@
(local-set-key (kbd "C-c d b") 'php-doc-block) ;; atajo para docblock
(company-mode t) ; habilita company mode
))
(php-mode . eglot-ensure)
;; (php-mode . lsp)
;;(php-mode . lsp)
)
)

21
init.el
View File

@ -39,17 +39,16 @@
(add-to-list 'load-path (concat user-emacs-directory "configs"))
;; Paquetes base
(require 'init-base)
(require 'init-extensions)
(require 'init-functions)
(require 'init-org)
;; (require 'init-lsp)
(require 'init-eglot)
(require 'init-company)
(require 'init-treemacs)
;;(require 'init-ctags)
(require 'init-ivy)
(require 'init-keys)
(require 'base)
(require 'base-extensions)
(require 'base-functions)
(require 'base-org)
(require 'base-lsp)
(require 'base-company)
(require 'base-treemacs)
(require 'base-ctags)
(require 'base-ivy)
(require 'base-keys)
;; Lenguajes
(require 'lang-php)