mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
This mostly replicates my uses of evil-collection
This commit is contained in:
parent
0c1fec94f3
commit
39ef932ea3
|
@ -838,6 +838,8 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
||||||
|
|
||||||
(evil-set-initial-state 'magit-status-mode 'normal)
|
(evil-set-initial-state 'magit-status-mode 'normal)
|
||||||
(evil-set-initial-state 'magit-log-mode 'normal)
|
(evil-set-initial-state 'magit-log-mode 'normal)
|
||||||
|
(evil-set-initial-state 'magit-diff-mode 'normal)
|
||||||
|
(evil-set-initial-state 'magit-refs-mode 'normal)
|
||||||
(evil-define-key 'normal magit-status-mode-map
|
(evil-define-key 'normal magit-status-mode-map
|
||||||
"j" 'evil-next-visual-line
|
"j" 'evil-next-visual-line
|
||||||
"k" 'evil-previous-visual-line
|
"k" 'evil-previous-visual-line
|
||||||
|
@ -846,7 +848,24 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
||||||
"u" 'magit-unstage
|
"u" 'magit-unstage
|
||||||
"l" 'magit-log
|
"l" 'magit-log
|
||||||
"F" 'magit-pull
|
"F" 'magit-pull
|
||||||
"p" 'magit-push)
|
"p" 'magit-push
|
||||||
|
"q" '+magit/quit
|
||||||
|
(kbd "<return>") 'magit-visit-ref)
|
||||||
|
(evil-define-key 'normal magit-log-mode-map
|
||||||
|
"j" 'evil-next-visual-line
|
||||||
|
"k" 'evil-previous-visual-line
|
||||||
|
"q" '+magit/quit
|
||||||
|
(kbd "<return>") 'magit-visit-ref)
|
||||||
|
(evil-define-key 'normal magit-diff-mode-map
|
||||||
|
"j" 'evil-next-visual-line
|
||||||
|
"k" 'evil-previous-visual-line
|
||||||
|
"q" '+magit/quit
|
||||||
|
(kbd "<return>") 'magit-visit-ref)
|
||||||
|
(evil-define-key 'normal magit-refs-mode-map
|
||||||
|
"j" 'evil-next-visual-line
|
||||||
|
"k" 'evil-previous-visual-line
|
||||||
|
"q" '+magit/quit
|
||||||
|
(kbd "<return>") 'magit-visit-ref)
|
||||||
|
|
||||||
;;;------ dired configuration ------;;;
|
;;;------ dired configuration ------;;;
|
||||||
|
|
||||||
|
@ -945,6 +964,14 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
||||||
|
|
||||||
;(add-hook 'org-mode-hook #'focus-mode)
|
;(add-hook 'org-mode-hook #'focus-mode)
|
||||||
|
|
||||||
|
;;;------ helpful configuration ------;;;
|
||||||
|
|
||||||
|
(evil-set-initial-state 'helpful-mode 'normal)
|
||||||
|
(evil-define-key 'normal helpful-mode-map
|
||||||
|
"j" 'evil-next-visual-line
|
||||||
|
"k" 'evil-previous-visual-line
|
||||||
|
"q" 'helpful-kill-buffers)
|
||||||
|
|
||||||
;;;-- Load emacs application framework;;;--
|
;;;-- Load emacs application framework;;;--
|
||||||
(use-package! eaf
|
(use-package! eaf
|
||||||
:load-path "~/.emacs.d/eaf/"
|
:load-path "~/.emacs.d/eaf/"
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
- [[#hledger-mode-configuration][hledger-mode Configuration]]
|
- [[#hledger-mode-configuration][hledger-mode Configuration]]
|
||||||
- [[#tab-bar-configuration][Tab Bar Configuration]]
|
- [[#tab-bar-configuration][Tab Bar Configuration]]
|
||||||
- [[#focus-mode-configuration][Focus Mode Configuration]]
|
- [[#focus-mode-configuration][Focus Mode Configuration]]
|
||||||
|
- [[#helpful-mode-configuration][Helpful Mode Configuration]]
|
||||||
- [[#eaf][EAF]]
|
- [[#eaf][EAF]]
|
||||||
- [[#my-initel][My init.el]]
|
- [[#my-initel][My init.el]]
|
||||||
- [[#my-packagesel][My packages.el]]
|
- [[#my-packagesel][My packages.el]]
|
||||||
|
@ -1188,6 +1189,8 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
||||||
|
|
||||||
(evil-set-initial-state 'magit-status-mode 'normal)
|
(evil-set-initial-state 'magit-status-mode 'normal)
|
||||||
(evil-set-initial-state 'magit-log-mode 'normal)
|
(evil-set-initial-state 'magit-log-mode 'normal)
|
||||||
|
(evil-set-initial-state 'magit-diff-mode 'normal)
|
||||||
|
(evil-set-initial-state 'magit-refs-mode 'normal)
|
||||||
(evil-define-key 'normal magit-status-mode-map
|
(evil-define-key 'normal magit-status-mode-map
|
||||||
"j" 'evil-next-visual-line
|
"j" 'evil-next-visual-line
|
||||||
"k" 'evil-previous-visual-line
|
"k" 'evil-previous-visual-line
|
||||||
|
@ -1196,7 +1199,24 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
||||||
"u" 'magit-unstage
|
"u" 'magit-unstage
|
||||||
"l" 'magit-log
|
"l" 'magit-log
|
||||||
"F" 'magit-pull
|
"F" 'magit-pull
|
||||||
"p" 'magit-push)
|
"p" 'magit-push
|
||||||
|
"q" '+magit/quit
|
||||||
|
(kbd "<return>") 'magit-visit-ref)
|
||||||
|
(evil-define-key 'normal magit-log-mode-map
|
||||||
|
"j" 'evil-next-visual-line
|
||||||
|
"k" 'evil-previous-visual-line
|
||||||
|
"q" '+magit/quit
|
||||||
|
(kbd "<return>") 'magit-visit-ref)
|
||||||
|
(evil-define-key 'normal magit-diff-mode-map
|
||||||
|
"j" 'evil-next-visual-line
|
||||||
|
"k" 'evil-previous-visual-line
|
||||||
|
"q" '+magit/quit
|
||||||
|
(kbd "<return>") 'magit-visit-ref)
|
||||||
|
(evil-define-key 'normal magit-refs-mode-map
|
||||||
|
"j" 'evil-next-visual-line
|
||||||
|
"k" 'evil-previous-visual-line
|
||||||
|
"q" '+magit/quit
|
||||||
|
(kbd "<return>") 'magit-visit-ref)
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Dired Configuration
|
** Dired Configuration
|
||||||
|
@ -1311,6 +1331,17 @@ I don't have this active right now since I'm exploring tab-bar mode instead!
|
||||||
|
|
||||||
;(add-hook 'org-mode-hook #'focus-mode)
|
;(add-hook 'org-mode-hook #'focus-mode)
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
** Helpful Mode Configuration
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
|
;;;------ helpful configuration ------;;;
|
||||||
|
|
||||||
|
(evil-set-initial-state 'helpful-mode 'normal)
|
||||||
|
(evil-define-key 'normal helpful-mode-map
|
||||||
|
"j" 'evil-next-visual-line
|
||||||
|
"k" 'evil-previous-visual-line
|
||||||
|
"q" 'helpful-kill-buffers)
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** EAF
|
** EAF
|
||||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
|
|
Loading…
Reference in a new issue