← Back to context

Comment by fipar

1 day ago

Just to offer a different perspective, I use Cursor at work and, coming from emacs (which I still use) with copilot completions only when I request them with a shortcut, Cursor’s behavior drives me crazy.

Which Emacs Package do you use for CoPilot, i tried using Copilot.el a long while ago, but had problems with it. Is there something new or does copilot.el fulfill your needs?

  • Just copilot.el (I checked to be sure and I'm pulling from github.com/zerolfx/copilot.el)

    My config is quite simple:

         (progn
           (require 'copilot)
           (add-hook 'prog-mode-hook 'copilot-mode)
           (add-hook 'git-commit-mode-hook 'copilot-mode)
           (add-hook 'org-mode-hook 'copilot-mode)
           (define-key copilot-completion-map (kbd "y") 'copilot-accept-completion)
           (define-key copilot-completion-map (kbd "n") 'copilot-next-completion)
           (define-key copilot-completion-map (kbd "c") 'copilot-clear-overlay)
           (global-set-key (kbd "C-M-S-s-u") 'copilot-complete)
           )
    

    I only get suggestions if I use that key (the prefix looks huge but I have a Keyboardio Model 100 and I have that bound to the Any key, so I intentionally picked a crazy-long prefix hoping to avoid collision with other shortcuts) and that's the way I like to use these tools (which is why the behaviour in Cursor drives me crazy, though I admit I haven't spend time looking at its configuration, maybe it's something that can be turned off).

    (Edit: formatting)