-
Notifications
You must be signed in to change notification settings - Fork 166
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hello,
Is it possible to use more than one account?
I have two GitHub Copilot account: one personal and one from my work. I would like to use both of them in a single Emacs session, depending on the directory I'm in. (Say ~/personal vs ~/work.)
Is there a way to have two separate installations or profiles, then choose which account I want to use for a given buffer? Unless the way it is implemented depend on global state and make that not possible.
I already have enabled copilot to run only on specific places (where a .copilot-enable file is found), with something like this:
(defun enable-copilot ()
(let ((path (buffer-file-name)))
(when (and path (locate-dominating-file (file-name-directory path) ".copilot-enable"))
(copilot-mode 1))))
(use-package copilot
:ensure t
:config
(add-hook 'prog-mode-hook 'enable-copilot)
...)I was expecting to be able to also define a variable to point at a specific instance to pick the right account for the current buffer.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request