mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-19 13:46:17 +10:00
Fixing the annoying ESC three times behavior in the modeline
This commit is contained in:
@@ -308,6 +308,16 @@
|
|||||||
"w L" '(buf-move-right :wk "Buffer move right"))
|
"w L" '(buf-move-right :wk "Buffer move right"))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(use-package git-timemachine
|
||||||
|
:after git-timemachine
|
||||||
|
:hook (evil-normalize-keymaps . git-timemachine-hook)
|
||||||
|
:config
|
||||||
|
(evil-define-key 'normal git-timemachine-mode-map (kbd "C-j") 'git-timemachine-show-previous-revision)
|
||||||
|
(evil-define-key 'normal git-timemachine-mode-map (kbd "C-k") 'git-timemachine-show-next-revision)
|
||||||
|
)
|
||||||
|
|
||||||
|
(use-package magit)
|
||||||
|
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
@@ -352,15 +362,7 @@
|
|||||||
(use-package haskell-mode)
|
(use-package haskell-mode)
|
||||||
(use-package lua-mode)
|
(use-package lua-mode)
|
||||||
|
|
||||||
(use-package git-timemachine
|
(global-set-key [escape] 'keyboard-escape-quit)
|
||||||
:after git-timemachine
|
|
||||||
:hook (evil-normalize-keymaps . git-timemachine-hook)
|
|
||||||
:config
|
|
||||||
(evil-define-key 'normal git-timemachine-mode-map (kbd "C-j") 'git-timemachine-show-previous-revision)
|
|
||||||
(evil-define-key 'normal git-timemachine-mode-map (kbd "C-k") 'git-timemachine-show-next-revision)
|
|
||||||
)
|
|
||||||
|
|
||||||
(use-package magit)
|
|
||||||
|
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|||||||
@@ -21,14 +21,15 @@
|
|||||||
- [[#setting-the-font-face][Setting the Font Face]]
|
- [[#setting-the-font-face][Setting the Font Face]]
|
||||||
- [[#zooming-inout][Zooming In/Out]]
|
- [[#zooming-inout][Zooming In/Out]]
|
||||||
- [[#general-keybindings][GENERAL KEYBINDINGS]]
|
- [[#general-keybindings][GENERAL KEYBINDINGS]]
|
||||||
|
- [[#git-programs][GIT PROGRAMS]]
|
||||||
|
- [[#git-time-machine][Git Time Machine]]
|
||||||
|
- [[#magit][Magit]]
|
||||||
- [[#graphical-user-interface-tweaks][GRAPHICAL USER INTERFACE TWEAKS]]
|
- [[#graphical-user-interface-tweaks][GRAPHICAL USER INTERFACE TWEAKS]]
|
||||||
- [[#disable-menubar-toolbars-and-scrollbars][Disable Menubar, Toolbars and Scrollbars]]
|
- [[#disable-menubar-toolbars-and-scrollbars][Disable Menubar, Toolbars and Scrollbars]]
|
||||||
- [[#display-line-numbers-and-truncated-lines][Display Line Numbers and Truncated Lines]]
|
- [[#display-line-numbers-and-truncated-lines][Display Line Numbers and Truncated Lines]]
|
||||||
- [[#ivy-counsel][IVY (COUNSEL)]]
|
- [[#ivy-counsel][IVY (COUNSEL)]]
|
||||||
- [[#language-support][LANGUAGE SUPPORT]]
|
- [[#language-support][LANGUAGE SUPPORT]]
|
||||||
- [[#git-programs][GIT PROGRAMS]]
|
- [[#minibuffer-escape][MINIBUFFER ESCAPE]]
|
||||||
- [[#git-time-machine][Git Time Machine]]
|
|
||||||
- [[#magit][Magit]]
|
|
||||||
- [[#modeline][MODELINE]]
|
- [[#modeline][MODELINE]]
|
||||||
- [[#neotree][NEOTREE]]
|
- [[#neotree][NEOTREE]]
|
||||||
- [[#org-mode][ORG MODE]]
|
- [[#org-mode][ORG MODE]]
|
||||||
@@ -433,6 +434,29 @@ You can use the bindings CTRL plus =/- for zooming in/out. You can also use CTR
|
|||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* GIT PROGRAMS
|
||||||
|
** Git Time Machine
|
||||||
|
[[https://github.com/emacsmirror/git-timemachine][git-timemachine]] is a program that allows you to move backwards and forwards through a file's commits. 'SPC g t' will open the time machine on a file if it is in a git repo. Then, while in normal mode, you can use 'CTRL-j' and 'CTRL-k' to move backwards and forwards through the commits.
|
||||||
|
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package git-timemachine
|
||||||
|
:after git-timemachine
|
||||||
|
:hook (evil-normalize-keymaps . git-timemachine-hook)
|
||||||
|
:config
|
||||||
|
(evil-define-key 'normal git-timemachine-mode-map (kbd "C-j") 'git-timemachine-show-previous-revision)
|
||||||
|
(evil-define-key 'normal git-timemachine-mode-map (kbd "C-k") 'git-timemachine-show-next-revision)
|
||||||
|
)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Magit
|
||||||
|
[[https://magit.vc/manual/][Magit]] is a full-featured git client for Emacs.
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package magit)
|
||||||
|
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* GRAPHICAL USER INTERFACE TWEAKS
|
* GRAPHICAL USER INTERFACE TWEAKS
|
||||||
Let's make GNU Emacs look a little better.
|
Let's make GNU Emacs look a little better.
|
||||||
|
|
||||||
@@ -500,27 +524,11 @@ Emacs has built-in programming language modes for Lisp, Scheme, DSSSL, Ada, ASM,
|
|||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* GIT PROGRAMS
|
* MINIBUFFER ESCAPE
|
||||||
** Git Time Machine
|
By default, Emacs requires you to hit ESC three times to escape quit the minibuffer.
|
||||||
[[https://github.com/emacsmirror/git-timemachine][git-timemachine]] is a program that allows you to move backwards and forwards through a file's commits. 'SPC g t' will open the time machine on a file if it is in a git repo. Then, while in normal mode, you can use 'CTRL-j' and 'CTRL-k' to move backwards and forwards through the commits.
|
|
||||||
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package git-timemachine
|
(global-set-key [escape] 'keyboard-escape-quit)
|
||||||
:after git-timemachine
|
|
||||||
:hook (evil-normalize-keymaps . git-timemachine-hook)
|
|
||||||
:config
|
|
||||||
(evil-define-key 'normal git-timemachine-mode-map (kbd "C-j") 'git-timemachine-show-previous-revision)
|
|
||||||
(evil-define-key 'normal git-timemachine-mode-map (kbd "C-k") 'git-timemachine-show-next-revision)
|
|
||||||
)
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Magit
|
|
||||||
[[https://magit.vc/manual/][Magit]] is a full-featured git client for Emacs.
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(use-package magit)
|
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* MODELINE
|
* MODELINE
|
||||||
|
|||||||
Reference in New Issue
Block a user