mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-14 04:38:29 +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"))
|
||||
)
|
||||
|
||||
(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)
|
||||
(tool-bar-mode -1)
|
||||
(scroll-bar-mode -1)
|
||||
@@ -352,15 +362,7 @@
|
||||
(use-package haskell-mode)
|
||||
(use-package lua-mode)
|
||||
|
||||
(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)
|
||||
(global-set-key [escape] 'keyboard-escape-quit)
|
||||
|
||||
(use-package doom-modeline
|
||||
:ensure t
|
||||
|
||||
@@ -21,14 +21,15 @@
|
||||
- [[#setting-the-font-face][Setting the Font Face]]
|
||||
- [[#zooming-inout][Zooming In/Out]]
|
||||
- [[#general-keybindings][GENERAL KEYBINDINGS]]
|
||||
- [[#git-programs][GIT PROGRAMS]]
|
||||
- [[#git-time-machine][Git Time Machine]]
|
||||
- [[#magit][Magit]]
|
||||
- [[#graphical-user-interface-tweaks][GRAPHICAL USER INTERFACE TWEAKS]]
|
||||
- [[#disable-menubar-toolbars-and-scrollbars][Disable Menubar, Toolbars and Scrollbars]]
|
||||
- [[#display-line-numbers-and-truncated-lines][Display Line Numbers and Truncated Lines]]
|
||||
- [[#ivy-counsel][IVY (COUNSEL)]]
|
||||
- [[#language-support][LANGUAGE SUPPORT]]
|
||||
- [[#git-programs][GIT PROGRAMS]]
|
||||
- [[#git-time-machine][Git Time Machine]]
|
||||
- [[#magit][Magit]]
|
||||
- [[#minibuffer-escape][MINIBUFFER ESCAPE]]
|
||||
- [[#modeline][MODELINE]]
|
||||
- [[#neotree][NEOTREE]]
|
||||
- [[#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
|
||||
|
||||
* 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
|
||||
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
|
||||
|
||||
* 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.
|
||||
|
||||
* MINIBUFFER ESCAPE
|
||||
By default, Emacs requires you to hit ESC three times to escape quit the minibuffer.
|
||||
|
||||
#+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)
|
||||
|
||||
(global-set-key [escape] 'keyboard-escape-quit)
|
||||
#+end_src
|
||||
|
||||
* MODELINE
|
||||
|
||||
Reference in New Issue
Block a user