Update
This commit is contained in:
25
config.el
25
config.el
@@ -1,5 +1,3 @@
|
||||
(setq-default tab-width 4)
|
||||
|
||||
(setq doom-font (font-spec :family "Maple Mono" :size 20))
|
||||
(add-to-list 'default-frame-alist '(height . 53))
|
||||
(add-to-list 'default-frame-alist '(width . 120))
|
||||
@@ -17,23 +15,14 @@
|
||||
(add-hook 'post-command-hook #'my-yas-try-expanding-auto-snippets)
|
||||
)
|
||||
|
||||
;; accept completion from copilot and fallback to company
|
||||
(use-package! copilot
|
||||
:hook (prog-mode . copilot-mode)
|
||||
:bind (:map copilot-completion-map
|
||||
("<tab>" . 'copilot-accept-completion)
|
||||
("TAB" . 'copilot-accept-completion)
|
||||
("C-TAB" . 'copilot-accept-completion-by-word)
|
||||
("C-<tab>" . 'copilot-accept-completion-by-word)
|
||||
("C-n" . 'copilot-next-completion)
|
||||
("C-p" . 'copilot-previous-completion))
|
||||
|
||||
(use-package! gptel
|
||||
:config
|
||||
(add-to-list 'copilot-indentation-alist '(prog-mode 2))
|
||||
(add-to-list 'copilot-indentation-alist '(org-mode 2))
|
||||
(add-to-list 'copilot-indentation-alist '(text-mode 2))
|
||||
(add-to-list 'copilot-indentation-alist '(clojure-mode 2))
|
||||
(add-to-list 'copilot-indentation-alist '(emacs-lisp-mode 2)))
|
||||
(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)
|
||||
)
|
||||
|
||||
(use-package! typst-ts-mode
|
||||
:init
|
||||
|
||||
Reference in New Issue
Block a user