emacs : copilot support

This commit is contained in:
2024-08-26 13:38:57 +09:00
parent 1bdcedb34b
commit 0df06aef69
3 changed files with 13 additions and 0 deletions

View File

@ -47,6 +47,9 @@
custom-org-roam-directory "~/org/roam"
custom-org-agenda-file "~/org/agenda/agenda.org")
;; Line numbers, relative or comment this line
(setq display-line-numbers-type 'relative)
;; Chatgpt setup
(setq custom-chatgpt-my-key "my-key")

View File

@ -114,5 +114,7 @@ Otherwise the startup will be very slow. "
(require 'init-extra)
(require 'init-chatgpt)
(require 'init-copilot)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; init.el ends here

View File

@ -0,0 +1,8 @@
;; init-copilot.el -*- lexical-binding: t -*-
(add-to-list 'load-path "~/.config/emacs/copilot.el")
(require 'copilot)
(add-hook 'prog-mode-hook 'copilot-mode)
(provide 'init-copilot)
;;; init-copilot.el ends here