Skip to content

Commit

Permalink
feat(emacs): add copilot
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Feb 4, 2024
1 parent 9b0a173 commit 342e0ac
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,7 @@
(company-tooltip-align-annotations t)
(company-abort-on-unique-match nil)
(company-frontends '(company-pseudo-tooltip-frontend
company-echo-metadata-frontend
company-quickhelp-frontend))
company-echo-metadata-frontend))
(company-backends
'(company-bbdb
company-semantic
Expand All @@ -483,9 +482,8 @@
:keymaps 'company-mode-map
"C-." #'company-complete))

(use-package company-quickhelp
:init
(company-quickhelp-mode))
(use-package company-box
:hook (company-mode . company-box-mode))

(use-package vterm)
(use-package vterm-toggle
Expand Down Expand Up @@ -583,6 +581,14 @@
:config
(global-treesit-auto-mode))

(use-package copilot
:init
(add-hook 'prog-mode-hook 'copilot-mode)
:general
(general-def copilot-completion-map
"TAB" #'copilot-accept-completion
"<tab>" #'copilot-accept-completion))

(use-package yasnippet)

(use-package lsp-mode
Expand Down

0 comments on commit 342e0ac

Please sign in to comment.