This commit is contained in:
Zelong Kuang
2025-11-17 01:34:12 +11:00
parent df89766af2
commit 78e9725683
4 changed files with 28 additions and 29 deletions

View File

@@ -1,9 +1,4 @@
* My doom config
** Some tweak
*** change indent size
#+begin_src emacs-lisp
(setq-default tab-width 4)
#+end_src
** Appearance settings
#+begin_src emacs-lisp
@@ -22,7 +17,8 @@
#+end_src
** Plugins
*** Yasnippet
This enables the feature of auto-expanding snippets when matching the pattern
Thisenables the feature of auto-expanding snippets when matching the pattern
#+begin_src emacs-lisp
(use-package! yasnippet
:config
@@ -56,13 +52,13 @@ Fix the issue that backspace doesn't work on mac
#+end_src
*** Copilot
#+begin_src emacs-lisp :tangle packages.el
#+begin_src emacs-lisp :tangle no
(package! copilot
:recipe (:host github :repo "copilot-emacs/copilot.el" :files ("*.el")))
#+end_src
Configuration
#+begin_src emacs-lisp
#+begin_src emacs-lisp :tangle no
;; accept completion from copilot and fallback to company
(use-package! copilot
:hook (prog-mode . copilot-mode)
@@ -82,6 +78,21 @@ Configuration
(add-to-list 'copilot-indentation-alist '(emacs-lisp-mode 2)))
#+end_src
*** LLM (gptel)
#+begin_src emacs-lisp :tangle packages.el
(package! gptel :recipe (:nonrecursive t))
#+end_src
#+begin_src emacs-lisp
(use-package! gptel
:config
(setq! gptel-api-key "e994f45f9b46cc8608bd2e9cd508417255514e96913b1764aab612512aa66449")
(setq gptel-model 'gemini-2.5-pro)
(setq gptel-backend (gptel-make-gh-copilot "Copilot"))
(map! "M-s RET" #'gptel-send)
(map! "M-s m" #'gptel-menu)
)
#+end_src
** Lang
*** Typst
**** Tree-sitter