Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; copilot
- (defvar bootstrap-version)
- (let ((bootstrap-file
- (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
- (bootstrap-version 5))
- (unless (file-exists-p bootstrap-file)
- (with-current-buffer
- (url-retrieve-synchronously
- "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
- 'silent 'inhibit-cookies)
- (goto-char (point-max))
- (eval-print-last-sexp)))
- (load bootstrap-file nil 'nomessage))
- (setq straight-use-package-by-default t)
- (straight-use-package 'use-package)
- (use-package copilot
- :straight (:host github :repo "zerolfx/copilot.el" :files ("dist" "*.el"))
- :ensure t
- :config
- ;; Set your preferred keybinding for copilot-complete
- (define-key copilot-mode-map (kbd "M-[") 'copilot-complete)
- (define-key copilot-completion-map (kbd "<M-tab>") 'copilot-accept-completion)
- (define-key copilot-completion-map (kbd "C-<tab>") 'copilot-accept-completion-by-word)
- )
- (add-hook 'prog-mode-hook 'copilot-mode)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement