[Emacs] Better code for evil configuration, better EDITOR variable
This commit is contained in:
parent
853b6a7c9f
commit
753cbe878a
@ -581,14 +581,16 @@ prefix them with a comma (I’ve taken this habit from Spacemacs).
|
|||||||
(use-package evil
|
(use-package evil
|
||||||
:straight (:build t)
|
:straight (:build t)
|
||||||
:init
|
:init
|
||||||
(setq evil-want-integration t)
|
(progn
|
||||||
(setq evil-want-keybinding nil)
|
(setq evil-want-integration t
|
||||||
(setq evil-want-C-u-scroll t)
|
evil-want-keybinding nil
|
||||||
(setq evil-want-C-i-jump nil)
|
evil-want-C-u-scroll t
|
||||||
|
evil-want-C-i-jump nil)
|
||||||
|
(require 'evil-vars)
|
||||||
|
(evil-set-undo-system 'undo-tree))
|
||||||
:config
|
:config
|
||||||
(evil-mode 1)
|
(evil-mode 1)
|
||||||
(setq evil-want-fine-undo t) ; more granular undo with evil
|
(setq evil-want-fine-undo t) ; more granular undo with evil
|
||||||
(setq evil-undo-system 'undo-tree)
|
|
||||||
(evil-set-initial-state 'messages-buffer-mode 'normal)
|
(evil-set-initial-state 'messages-buffer-mode 'normal)
|
||||||
(evil-set-initial-state 'dashboard-mode 'normal)
|
(evil-set-initial-state 'dashboard-mode 'normal)
|
||||||
|
|
||||||
@ -1684,7 +1686,7 @@ to Dart development: the ~DART_SDK~ and ~ANDROID_HOME~ variables.
|
|||||||
The ~EDITOR~ variable also needs to be set for git commands, especially the
|
The ~EDITOR~ variable also needs to be set for git commands, especially the
|
||||||
~yadm~ commands.
|
~yadm~ commands.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setenv "EDITOR" "emacsclient -c")
|
(setenv "EDITOR" "emacsclient -c -a emacs")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Finally, for some specific situations I need ~SHELL~ to be set to
|
Finally, for some specific situations I need ~SHELL~ to be set to
|
||||||
|
Loading…
Reference in New Issue
Block a user