Fix go-mode and undo-tree
This commit is contained in:
parent
f00d514b6b
commit
128bb4fa20
11
init.el
11
init.el
@ -138,8 +138,6 @@
|
|||||||
(c++-mode . c++-ts-mode)
|
(c++-mode . c++-ts-mode)
|
||||||
(c-or-c++-mode . c-or-c++-ts-mode)
|
(c-or-c++-mode . c-or-c++-ts-mode)
|
||||||
(python-mode . python-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)
|
(java-mode . java-ts-mode)
|
||||||
(rust-mode . rust-ts-mode)
|
(rust-mode . rust-ts-mode)
|
||||||
(json-mode . json-ts-mode)
|
(json-mode . json-ts-mode)
|
||||||
@ -190,7 +188,10 @@
|
|||||||
;; undo-tree
|
;; undo-tree
|
||||||
(use-package undo-tree
|
(use-package undo-tree
|
||||||
:defer nil
|
:defer nil
|
||||||
|
:hook (undo-tree-visualizer-mode . my/-undo-tree-visualizer-mode-setup)
|
||||||
:config
|
:config
|
||||||
|
(defun my/-undo-tree-visualizer-mode-setup ()
|
||||||
|
(visual-line-mode -1))
|
||||||
(global-undo-tree-mode))
|
(global-undo-tree-mode))
|
||||||
|
|
||||||
;; evil
|
;; evil
|
||||||
@ -207,8 +208,7 @@
|
|||||||
(evil-define-key '(normal visual motion) proced-mode-map
|
(evil-define-key '(normal visual motion) proced-mode-map
|
||||||
"u" #'proced-unmark)
|
"u" #'proced-unmark)
|
||||||
(evil-define-key '(normal visual motion) dired-mode-map
|
(evil-define-key '(normal visual motion) dired-mode-map
|
||||||
"u" #'dired-unmark)
|
"u" #'dired-unmark))
|
||||||
(evil-set-initial-state 'undo-tree-visualizer-mode 'emacs))
|
|
||||||
(use-package evil-collection
|
(use-package evil-collection
|
||||||
:after evil
|
:after evil
|
||||||
:diminish evil-collection-unimpaired-mode
|
:diminish evil-collection-unimpaired-mode
|
||||||
@ -802,7 +802,8 @@ COMMAND and COMINT are like `compile'."
|
|||||||
|
|
||||||
;; go mode
|
;; go mode
|
||||||
(use-package go-mode
|
(use-package go-mode
|
||||||
:defer nil)
|
:defer nil
|
||||||
|
:hook (go-mode . eglot-ensure))
|
||||||
(use-package go-ts-mode
|
(use-package go-ts-mode
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:hook (go-ts-mode . eglot-ensure))
|
:hook (go-ts-mode . eglot-ensure))
|
||||||
|
Loading…
Reference in New Issue
Block a user