feat(language): stop using visual-line-mode in prog-mode derived modes

It makes more sense for text-mode derived modes.
This commit is contained in:
2022-06-18 00:30:16 +01:00
parent 5b054bdd07
commit 262a661557
2 changed files with 1 additions and 10 deletions

View File

@@ -10,7 +10,7 @@
:straight (:host github :repo "zerolfx/copilot.el"
:files ("dist" "copilot.el"))
:hook
(prog-mode . siren-copilot-setup)
(prog-mode . copilot-mode)
:general
("C-<tab>" 'copilot-accept-completion)
@@ -20,14 +20,6 @@
"C-TAB" 'copilot-accept-completion
"<backtab>" 'copilot-accept-completion)
:preface
(defun siren-copilot-setup ()
;; Disable visual-line-mode when copilot-mode is enabled. It prevents
;; freezing issues, details:
;; https://github.com/zerolfx/copilot.el/issues/15#issuecomment-1124244140
(visual-line-mode -1)
(copilot-mode))
:config
(with-eval-after-load 'company
;; Use company popup even when there's only one result

View File

@@ -24,7 +24,6 @@
(siren-display-indentation 1))
(hl-line-mode t)
(visual-line-mode t)
(whitespace-mode t))
:init