Compare commits

..

4 Commits

Author SHA1 Message Date
KJ
95d9746fbf Set mhtml-mode for sintax highlight on html org-src blocks. 2024-09-24 13:35:10 -04:00
KJ
135671b5b9 Disable electric pair. 2024-09-24 13:34:38 -04:00
KJ
45029768b9 Improve lang php config. 2024-09-24 13:33:47 -04:00
KJ
9876be8389 Reconfigure gptel models. 2024-09-21 12:41:05 -04:00
4 changed files with 13 additions and 10 deletions

View File

@ -34,6 +34,7 @@
:ensure nil :ensure nil
:hook ((css-mode . eglot-ensure) :hook ((css-mode . eglot-ensure)
(html-mode . eglot-ensure) (html-mode . eglot-ensure)
(php-mode . eglot-ensure)
(php-ts-mode . eglot-ensure) (php-ts-mode . eglot-ensure)
(rust-mode . eglot-ensure) (rust-mode . eglot-ensure)
(sh-mode . eglot-ensure)) (sh-mode . eglot-ensure))

View File

@ -25,6 +25,9 @@
(visual-line-mode 1) (visual-line-mode 1)
(visual-fill-column-mode 1) (visual-fill-column-mode 1)
;; Configuracin para Systanx Highlight en porg-blocks
(add-to-list 'org-src-lang-modes (cons "html" 'mhtml))
;; Configuración de fonts ;; Configuración de fonts
;; (set-face-attribute (car face) nil :font "Cantarell" :weight 'regular :height (cdr face)) ;; (set-face-attribute (car face) nil :font "Cantarell" :weight 'regular :height (cdr face))

View File

@ -127,22 +127,22 @@
(drag-stuff-define-keys)) (drag-stuff-define-keys))
;; 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
:ensure nil ;; :ensure nil
:hook (elpaca-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))
;; Cliente LLM (ollama, chatgpt, gemini, etc.) ;; Cliente LLM (ollama, chatgpt, gemini, etc.)
(use-package gptel (use-package gptel
:defer t :defer t
:config :config
(setq gptel-model "dolphin-llama3:latest" (setq gptel-model "gemma2"
gptel-backend (gptel-make-ollama "Ollama" gptel-backend (gptel-make-ollama "Ollama"
:host "localhost:11434" :host "localhost:11434"
:stream t :stream t
:models '("mistral:latest" "dolphin-llama3:latest" "llama3:latest" "llava:latest")) :models '("mistral:latest" "dolphin-llama3:latest" "gemma2" "llava:latest"))
gptel-default-mode 'org-mode gptel-default-mode 'org-mode
gptel-prompt-prefix-alist gptel-prompt-prefix-alist
'((markdown-mode . "# ") '((markdown-mode . "# ")

View File

@ -12,12 +12,11 @@
(use-package php-ts-mode (use-package php-ts-mode
:defer t :defer t
:mode "\\.php\\'" :mode "\\.php\\'"
:after php-mode
:ensure nil) :ensure nil)
;; Requerido por org-mode para el Syntax Highlight
(use-package php-mode (use-package php-mode
:defer t :defer t
:hook (php-mode . php-ts-mode)
:ensure t) :ensure t)
(use-package php-doc-block (use-package php-doc-block