fixes to emacs

This commit is contained in:
Chris Cochrun 2025-08-15 12:52:34 -05:00
parent 011bd036b2
commit dc4ece08e2
2 changed files with 31 additions and 11 deletions

View file

@ -857,7 +857,7 @@ Let's start by creating a self contained function of what I'd like started on ev
(visual-fill-column-mode +1)
(display-line-numbers-mode -1)
(variable-pitch-mode +1)
(jinx-mode +1)
;; (jinx-mode +1)
(setq visual-fill-column-width 100
visual-fill-column-center-text t)
@ -2379,8 +2379,9 @@ Idk, let's try this i guess
#+begin_src emacs-lisp
(use-package aidermacs
:config
(setenv "OLLAMA_API_BASE" "https://ai.tfcconnection.org")
(setq aidermacs-default-model "ollama_chat/llama3.2:latest"
(setenv "OPENAI_API_BASE" "https://ai.tfcconnection.org/v1")
(setenv "OPENAI_API_KEY" "yes")
(setq aidermacs-default-model "openai/gemma3:latest"
aidermacs-backend 'comint
aidermacs-watch-files t))
#+end_src
@ -2399,6 +2400,15 @@ Jinx is an enchanted spell checker for emacs. I think I'll just turn it on globa
"C-S-f" 'jinx-correct))
#+end_src
#+begin_src emacs-lisp
(add-to-list 'eglot-server-programs
'(text-mode . ("harper-ls" "--stdio")))
(add-to-list 'eglot-server-programs
'(org-mode . ("harper-ls" "--stdio")))
(add-to-list 'eglot-server-programs
'((english-prose-mode :language-id "plaintext") . ("harper-ls" "--stdio")))
#+end_src
** Emoji
In order to render color emojis I'll use =unicode-fonts=.
#+begin_src emacs-lisp :tangle no
@ -3944,6 +3954,7 @@ Let's give eglot a try.
(add-hook 'eglot-managed-mode-hook #'chris/eglot-capf)
(add-to-list 'eglot-server-programs '(wgsl-mode "wgsl-analyzer"))
(add-to-list 'eglot-server-programs '(qml-mode "qmlls"))
:general
(general-def 'normal eglot-mode-map