reasoning in separate buffer, ts- and elixir support
This commit is contained in:
@@ -130,6 +130,7 @@
|
|||||||
gptel-model 'Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf)
|
gptel-model 'Qwen3-30B-A3B-Thinking-2507-Q6_K.gguf)
|
||||||
;; Do not use chatgpt as default. took long to find.
|
;; Do not use chatgpt as default. took long to find.
|
||||||
(setq-default gptel-model 'hf.co/unsloth/Qwen3-30B-A3B-Thinking-2507-GGUF:UD-Q4_K_XL)
|
(setq-default gptel-model 'hf.co/unsloth/Qwen3-30B-A3B-Thinking-2507-GGUF:UD-Q4_K_XL)
|
||||||
|
(setq gptel-include-reasoning "*gptel-reasoning*")
|
||||||
(require 'gptel-integrations) ;; <- for mcp
|
(require 'gptel-integrations) ;; <- for mcp
|
||||||
;; declare another llm configuration, I also use Ollama to easily use multiple smaller models that don't require
|
;; declare another llm configuration, I also use Ollama to easily use multiple smaller models that don't require
|
||||||
;; max speed or the latest API.
|
;; max speed or the latest API.
|
||||||
@@ -145,3 +146,47 @@
|
|||||||
:capabilities (tools media)
|
:capabilities (tools media)
|
||||||
:mime-types ("image/jpeg" "image/png" "image/svg")))))
|
:mime-types ("image/jpeg" "image/png" "image/svg")))))
|
||||||
|
|
||||||
|
|
||||||
|
;; elixir
|
||||||
|
;; inspiration https://medium.com/@victor.nascimento/elixir-emacs-development-2023-edition-1a6ccc40629
|
||||||
|
(use-package
|
||||||
|
emacs
|
||||||
|
:ensure nil
|
||||||
|
:custom
|
||||||
|
|
||||||
|
;; Should use:
|
||||||
|
;; (mapc #'treesit-install-language-grammar (mapcar #'car treesit-language-source-alist))
|
||||||
|
;; at least once per installation or while changing this list
|
||||||
|
(treesit-language-source-alist
|
||||||
|
'((heex "https://github.com/phoenixframework/tree-sitter-heex")
|
||||||
|
(elixir "https://github.com/elixir-lang/tree-sitter-elixir")
|
||||||
|
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
|
||||||
|
(tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src")))
|
||||||
|
|
||||||
|
;; Install grammars if not present
|
||||||
|
(dolist (lang '(typescript tsx))
|
||||||
|
(unless (treesit-language-available-p lang)
|
||||||
|
(treesit-install-language-grammar lang)))
|
||||||
|
(major-mode-remap-alist
|
||||||
|
'((elixir-mode . elixir-ts-mode)))
|
||||||
|
)
|
||||||
|
|
||||||
|
(with-eval-after-load 'eglot
|
||||||
|
(add-to-list 'eglot-server-programs '(elixir-ts-mode . ("sh" "/Users/willem/.elixir-ls/release/language_server.sh" ))))
|
||||||
|
|
||||||
|
(use-package
|
||||||
|
elixir-ts-mode
|
||||||
|
:hook (elixir-ts-mode . eglot-ensure)
|
||||||
|
(elixir-ts-mode
|
||||||
|
.
|
||||||
|
(lambda ()
|
||||||
|
(push '(">=" . ?\u2265) prettify-symbols-alist)
|
||||||
|
(push '("<=" . ?\u2264) prettify-symbols-alist)
|
||||||
|
(push '("!=" . ?\u2260) prettify-symbols-alist)
|
||||||
|
(push '("==" . ?\u2A75) prettify-symbols-alist)
|
||||||
|
(push '("=~" . ?\u2245) prettify-symbols-alist)
|
||||||
|
(push '("<-" . ?\u2190) prettify-symbols-alist)
|
||||||
|
(push '("->" . ?\u2192) prettify-symbols-alist)
|
||||||
|
(push '("<-" . ?\u2190) prettify-symbols-alist)
|
||||||
|
(push '("|>" . ?\u25B7) prettify-symbols-alist)))
|
||||||
|
(before-save . eglot-format))
|
||||||
|
|||||||
@@ -119,6 +119,7 @@
|
|||||||
;;common-lisp ; if you've seen one lisp, you've seen them all
|
;;common-lisp ; if you've seen one lisp, you've seen them all
|
||||||
;;coq ; proofs-as-programs
|
;;coq ; proofs-as-programs
|
||||||
;;crystal ; ruby at the speed of c
|
;;crystal ; ruby at the speed of c
|
||||||
|
typescript
|
||||||
csharp ; unity, .NET, and mono shenanigans
|
csharp ; unity, .NET, and mono shenanigans
|
||||||
data ; config/data formats
|
data ; config/data formats
|
||||||
;;(dart +flutter) ; paint ui and not much else
|
;;(dart +flutter) ; paint ui and not much else
|
||||||
|
|||||||
Reference in New Issue
Block a user