GitHub - zerolfx/copilot.el: Unofficial Copilot plugin for Emacs.
source link: https://github.com/zerolfx/copilot.el
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Copilot.el
Copilot.el is an Emacs plugin for GitHub Copilot.
Warning: This plugin is unofficial and based on binaries provided by copilot.vim.
Warning: This plugin is under development.
Note: You need access to Copilot technical preview to use this plugin.
Installation
-
Install Neovim and copilot.vim plugin. Follow instructions in copilot.vim to setup copilot (run
:Copilot setup
inside Neovim). -
Clone this repo.
-
Copy
copilot.vim/copilot/dist
directory tocopilot.el
repo root. -
Modify your emacs configuration to load and setup
copilot.el
;; Configuration example for Spacemacs (inside your user-config): ;; Load copilot.el, modify this path to your local path. (load-file "~/.emacs.d/copilot.el") ;; Use tab for completion. Assumes that you use company-mode for completion. (define-key company-mode-map (kbd "<tab>") (lambda () (interactive) (or (copilot-accept-completion) (company-indent-or-complete-common nil)))) ;; Enable copilot (copilot-enable)
- Enjoy!
Roadmap
- Setup Copilot without Neovim
- Cycle through suggestions
- Add package to MELPA
- Test compatibility with vanilla Emacs and other auto completion packages
Thanks
These projects helped me a lot:
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK