Rename hydra to transient, add copilot
This commit is contained in:
parent
8d81d91314
commit
9508dfa70d
10 changed files with 21 additions and 13 deletions
|
|
@ -28,9 +28,17 @@
|
|||
:after company
|
||||
:hook (((company-mode) . company-box-mode)))
|
||||
|
||||
(use-package copilot
|
||||
:straight (:host github :repo "zerolfx/copilot.el" :files ("dist" "*.el"))
|
||||
:ensure t)
|
||||
|
||||
(global-company-mode t)
|
||||
(yas-global-mode t)
|
||||
|
||||
(add-hook 'prog-mode-hook 'copilot-mode)
|
||||
(define-key copilot-completion-map (kbd "<tab>") 'copilot-accept-completion)
|
||||
(define-key copilot-completion-map (kbd "TAB") 'copilot-accept-completion)
|
||||
|
||||
(setq-default
|
||||
company-minimum-prefix-length 3 ;; minimum prefix character number for auto complete.
|
||||
company-idle-delay 0.1
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
;;; Code:
|
||||
|
||||
(require '+custom-pkg-keys-mode "$HOME/.emacs.d/pkg/keys-mode.el")
|
||||
(require '+custom-pkg-hydra "$HOME/.emacs.d/pkg/hydra.el")
|
||||
(require '+custom-pkg-transient "$HOME/.emacs.d/pkg/transient.el")
|
||||
|
||||
(use-package deft
|
||||
:straight t
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
;;; pkg/hydra -- summary -*- lexical-binding: t; -*-
|
||||
;;; pkg/transient -- summary -*- lexical-binding: t; -*-
|
||||
;;; Commentary:
|
||||
;;; Global hydra definitions.
|
||||
;;; Global Transient definitions.
|
||||
;;; Code:
|
||||
|
||||
(require '+custom-pkg-avy "$HOME/.emacs.d/pkg/avy.el")
|
||||
|
|
@ -119,5 +119,5 @@
|
|||
(define-key global-map (kbd "C-c m") '+my-transient-move-menu)
|
||||
(define-key global-map (kbd "C-c l") '+my-transient-language-context-menu)
|
||||
|
||||
(provide '+custom-pkg-hydra)
|
||||
;;; hydra.el ends here
|
||||
(provide '+custom-pkg-transient)
|
||||
;;; transient.el ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue