Fix go-mode and undo-tree

This commit is contained in:
Alexander Rosenberg 2024-03-23 04:56:00 -07:00
parent f00d514b6b
commit 128bb4fa20
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

11
init.el
View File

@ -138,8 +138,6 @@
(c++-mode . c++-ts-mode)
(c-or-c++-mode . c-or-c++-ts-mode)
(python-mode . python-ts-mode)
(go-mode . go-ts-mode)
(go-dot-mod-mode . go-mod-ts-mode)
(java-mode . java-ts-mode)
(rust-mode . rust-ts-mode)
(json-mode . json-ts-mode)
@ -190,7 +188,10 @@
;; undo-tree
(use-package undo-tree
:defer nil
:hook (undo-tree-visualizer-mode . my/-undo-tree-visualizer-mode-setup)
:config
(defun my/-undo-tree-visualizer-mode-setup ()
(visual-line-mode -1))
(global-undo-tree-mode))
;; evil
@ -207,8 +208,7 @@
(evil-define-key '(normal visual motion) proced-mode-map
"u" #'proced-unmark)
(evil-define-key '(normal visual motion) dired-mode-map
"u" #'dired-unmark)
(evil-set-initial-state 'undo-tree-visualizer-mode 'emacs))
"u" #'dired-unmark))
(use-package evil-collection
:after evil
:diminish evil-collection-unimpaired-mode
@ -802,7 +802,8 @@ COMMAND and COMINT are like `compile'."
;; go mode
(use-package go-mode
:defer nil)
:defer nil
:hook (go-mode . eglot-ensure))
(use-package go-ts-mode
:ensure nil
:hook (go-ts-mode . eglot-ensure))