Compare commits
6 Commits
051e902d64
...
dc74b4bde0
Author | SHA1 | Date | |
---|---|---|---|
dc74b4bde0 | |||
52db45d968 | |||
8f90cfcf1b | |||
a86d9e4eb7 | |||
5cf22a5451 | |||
2d02d9e5bc |
@ -1,4 +1,4 @@
|
|||||||
;;; base.el --- Configuración base de emacs -*- lexical-binding: t -*-
|
;;; init-base.el --- Configuración base de emacs -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;; Author: kj <webmaster@outcontrol.net>
|
;; Author: kj <webmaster@outcontrol.net>
|
||||||
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
||||||
@ -145,5 +145,5 @@
|
|||||||
|
|
||||||
(load custom-file)
|
(load custom-file)
|
||||||
|
|
||||||
(provide 'base)
|
(provide 'init-base)
|
||||||
;;; base.el ends here
|
;;; init-base.el ends here
|
@ -1,4 +1,4 @@
|
|||||||
;;; base-company.el --- Autocompletado con company-mode -*- lexical-binding: t -*-
|
;;; init-company.el --- Autocompletado con company-mode -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;; Author: kj <webmaster@outcontrol.net>
|
;; Author: kj <webmaster@outcontrol.net>
|
||||||
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
;; 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)))
|
(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))))
|
company-box-icons-alist 'company-box-icons-all-the-icons))))
|
||||||
|
|
||||||
(provide 'base-company)
|
(provide 'init-company)
|
||||||
;;; base-company.el ends here
|
;;; init-company.el ends here
|
@ -1,4 +1,4 @@
|
|||||||
;;; base-ctags.el --- Configuracíón de TAGS -*- lexical-binding: t -*-
|
;;; init-ctags.el --- Configuracíón de TAGS -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;; Author: kj <webmaster@outcontrol.net>
|
;; Author: kj <webmaster@outcontrol.net>
|
||||||
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
||||||
@ -47,8 +47,10 @@
|
|||||||
|
|
||||||
(defun lsp-citre-capf-function ()
|
(defun lsp-citre-capf-function ()
|
||||||
"A capf backend that tries lsp first, then Citre."
|
"A capf backend that tries lsp first, then Citre."
|
||||||
(let ((lsp-result (if (bound-and-true-p lsp-mode)
|
(let ((lsp-result (if (fboundp #'eglot-completion-at-point)
|
||||||
(lsp-completion-at-point))))
|
(eglot-completion-at-point)
|
||||||
|
(when (fboundp #'lsp-completion-at-point)
|
||||||
|
(lsp-completion-at-point)))))
|
||||||
(if (and lsp-result
|
(if (and lsp-result
|
||||||
(try-completion
|
(try-completion
|
||||||
(buffer-substring (nth 0 lsp-result)
|
(buffer-substring (nth 0 lsp-result)
|
||||||
@ -64,5 +66,5 @@
|
|||||||
(add-hook 'citre-mode-hook #'enable-lsp-citre-capf-backend)
|
(add-hook 'citre-mode-hook #'enable-lsp-citre-capf-backend)
|
||||||
))
|
))
|
||||||
|
|
||||||
(provide 'base-ctags)
|
(provide 'init-ctags)
|
||||||
;;; base-ctags.el ends here
|
;;; init-ctags.el ends here
|
18
configs/init-eglot.el
Normal file
18
configs/init-eglot.el
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
;;; 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
|
@ -1,4 +1,4 @@
|
|||||||
;;; base-extensions.el --- Extensiones/paquetes instalados y su configuración -*- lexical-binding: t -*-
|
;;; init-extensions.el --- Extensiones/paquetes instalados y su configuración -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;; Author: kj <webmaster@outcontrol.net>
|
;; Author: kj <webmaster@outcontrol.net>
|
||||||
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
||||||
@ -26,7 +26,8 @@
|
|||||||
(use-package dashboard
|
(use-package dashboard
|
||||||
:defer t
|
:defer t
|
||||||
:straight t
|
:straight t
|
||||||
:hook (after-init . dashboard-setup-startup-hook)
|
;; :hook (after-init . dashboard-setup-startup-hook)
|
||||||
|
:hook (after-init . org-agenda-list)
|
||||||
:config
|
:config
|
||||||
(setq dashboard-set-file-icons t
|
(setq dashboard-set-file-icons t
|
||||||
dashboard-set-heading-icons t
|
dashboard-set-heading-icons t
|
||||||
@ -103,12 +104,12 @@
|
|||||||
:hook
|
:hook
|
||||||
(after-init . global-git-gutter-mode))
|
(after-init . global-git-gutter-mode))
|
||||||
|
|
||||||
(use-package gcmh
|
;; (use-package gcmh
|
||||||
:defer t
|
;; :defer t
|
||||||
:straight t
|
;; :straight t
|
||||||
:init
|
;; :init
|
||||||
(setq gcmh-high-cons-threshold 100000000)
|
;; (setq gcmh-high-cons-threshold 100000000)
|
||||||
(gcmh-mode 1))
|
;; (gcmh-mode 1))
|
||||||
|
|
||||||
;; Highlight en los números.
|
;; Highlight en los números.
|
||||||
;; (use-package highlight-numbers
|
;; (use-package highlight-numbers
|
||||||
@ -349,5 +350,5 @@
|
|||||||
:ensure t
|
:ensure t
|
||||||
:straight t)
|
:straight t)
|
||||||
|
|
||||||
(provide 'base-extensions)
|
(provide 'init-extensions)
|
||||||
;;; base-extensions.el ends here
|
;;; init-extensions.el ends here
|
@ -1,4 +1,4 @@
|
|||||||
;;; base-functions.el --- Configuración de org-mode -*- lexical-binding: t -*-
|
;;; init-functions.el --- Configuración de org-mode -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;; Author: kj <webmaster@outcontrol.net>
|
;; Author: kj <webmaster@outcontrol.net>
|
||||||
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
;; 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)
|
(or (featurep 'all-the-icons)
|
||||||
(require 'all-the-icons nil t))))
|
(require 'all-the-icons nil t))))
|
||||||
|
|
||||||
(provide 'base-functions)
|
(provide 'init-functions)
|
||||||
;;; base-functions.el ends here.
|
;;; init-functions.el ends here.
|
@ -1,4 +1,4 @@
|
|||||||
;;; base-ivy.el --- Ayuditas y autocompletado del minibufer -*- lexical-binding: t -*-
|
;;; init-ivy.el --- Ayuditas y autocompletado del minibufer -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;; Author: kj <webmaster@outcontrol.net>
|
;; Author: kj <webmaster@outcontrol.net>
|
||||||
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
||||||
@ -148,5 +148,5 @@
|
|||||||
:straight t
|
:straight t
|
||||||
:bind ("C-c C-y" . ivy-yasnippet))
|
:bind ("C-c C-y" . ivy-yasnippet))
|
||||||
|
|
||||||
(provide 'base-ivy)
|
(provide 'init-ivy)
|
||||||
;;; base-ivy.el ends here
|
;;; init-ivy.el ends here
|
@ -1,4 +1,4 @@
|
|||||||
;;; base-keys.el --- Archivo de configuración de atajos -*- lexical-binding: t -*-
|
;;; init-keys.el --- Archivo de configuración de atajos -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;; Author: kj <webmaster@outcontrol.net>
|
;; Author: kj <webmaster@outcontrol.net>
|
||||||
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
||||||
@ -40,5 +40,5 @@
|
|||||||
;; Deactivar el abrir *messages* al cliquear en el minibuffer
|
;; Deactivar el abrir *messages* al cliquear en el minibuffer
|
||||||
(define-key minibuffer-inactive-mode-map [mouse-1] #'ignore)
|
(define-key minibuffer-inactive-mode-map [mouse-1] #'ignore)
|
||||||
|
|
||||||
(provide 'base-keys)
|
(provide 'init-keys)
|
||||||
;;; base-keys.el ends here
|
;;; init-keys.el ends here
|
@ -1,4 +1,4 @@
|
|||||||
;;; base-lsp.el --- Languaje server protocol. -*- lexical-binding: t -*-
|
;;; init-lsp.el --- Languaje server protocol. -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;; Author: kj <webmaster@outcontrol.net>
|
;; Author: kj <webmaster@outcontrol.net>
|
||||||
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
||||||
@ -230,6 +230,21 @@
|
|||||||
:straight t
|
:straight t
|
||||||
:hook (java-mode . (lambda () (require 'lsp-java))))
|
: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 'base-lsp)
|
(provide 'init-lsp)
|
||||||
;;; base-lsp.el ends here
|
;;; init-lsp.el ends here
|
@ -1,4 +1,4 @@
|
|||||||
;;; base-config.el --- Configuración de org-mode -*- lexical-binding: t -*-
|
;;; init-config.el --- Configuración de org-mode -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;; Author: kj <webmaster@outcontrol.net>
|
;; Author: kj <webmaster@outcontrol.net>
|
||||||
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
||||||
@ -37,7 +37,6 @@
|
|||||||
|
|
||||||
(use-package org
|
(use-package org
|
||||||
:defer t
|
:defer t
|
||||||
:ensure t
|
|
||||||
:straight (:type built-in)
|
:straight (:type built-in)
|
||||||
:bind (("C-c a" . org-agenda)
|
:bind (("C-c a" . org-agenda)
|
||||||
("C-c x" . org-capture))
|
("C-c x" . org-capture))
|
||||||
@ -185,5 +184,5 @@
|
|||||||
:ensure t
|
:ensure t
|
||||||
:hook (org-mode . org-autolist-mode))
|
:hook (org-mode . org-autolist-mode))
|
||||||
|
|
||||||
(provide 'base-org)
|
(provide 'init-org)
|
||||||
;;; base-org.el ends here
|
;;; init-org.el ends here
|
@ -1,4 +1,4 @@
|
|||||||
;;; base-treemacs.el --- Extensiones/paquetes instalados y su configuración -*- lexical-binding: t -*-
|
;;; init-treemacs.el --- Extensiones/paquetes instalados y su configuración -*- lexical-binding: t -*-
|
||||||
|
|
||||||
;; Author: kj <webmaster@outcontrol.net>
|
;; Author: kj <webmaster@outcontrol.net>
|
||||||
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
||||||
@ -56,21 +56,5 @@
|
|||||||
magit-post-unstage)
|
magit-post-unstage)
|
||||||
. treemacs-magit--schedule-update))
|
. treemacs-magit--schedule-update))
|
||||||
|
|
||||||
;; `lsp-mode' and `treemacs' integration
|
(provide 'init-treemacs)
|
||||||
(use-package lsp-treemacs
|
;;; init-treemacs.el ends here
|
||||||
: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
|
|
@ -14,7 +14,8 @@
|
|||||||
(local-set-key (kbd "C-c d b") 'php-doc-block) ;; atajo para docblock
|
(local-set-key (kbd "C-c d b") 'php-doc-block) ;; atajo para docblock
|
||||||
(company-mode t) ; habilita company mode
|
(company-mode t) ; habilita company mode
|
||||||
))
|
))
|
||||||
;;(php-mode . lsp)
|
(php-mode . eglot-ensure)
|
||||||
|
;; (php-mode . lsp)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
21
init.el
21
init.el
@ -39,16 +39,17 @@
|
|||||||
(add-to-list 'load-path (concat user-emacs-directory "configs"))
|
(add-to-list 'load-path (concat user-emacs-directory "configs"))
|
||||||
|
|
||||||
;; Paquetes base
|
;; Paquetes base
|
||||||
(require 'base)
|
(require 'init-base)
|
||||||
(require 'base-extensions)
|
(require 'init-extensions)
|
||||||
(require 'base-functions)
|
(require 'init-functions)
|
||||||
(require 'base-org)
|
(require 'init-org)
|
||||||
(require 'base-lsp)
|
;; (require 'init-lsp)
|
||||||
(require 'base-company)
|
(require 'init-eglot)
|
||||||
(require 'base-treemacs)
|
(require 'init-company)
|
||||||
(require 'base-ctags)
|
(require 'init-treemacs)
|
||||||
(require 'base-ivy)
|
;;(require 'init-ctags)
|
||||||
(require 'base-keys)
|
(require 'init-ivy)
|
||||||
|
(require 'init-keys)
|
||||||
|
|
||||||
;; Lenguajes
|
;; Lenguajes
|
||||||
(require 'lang-php)
|
(require 'lang-php)
|
||||||
|
Loading…
Reference in New Issue
Block a user