From 2b24770fa97db0b00c982727a7b44e5a1234ef2e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 22 Sep 2023 14:51:24 +0100 Subject: (Emacs)~modified keybindings Main one is "-g" being magit-dispatch now. --- Emacs/.config/emacs/config.org | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'Emacs/.config/emacs/config.org') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 626be40..6eb8bd4 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -574,6 +574,7 @@ Setup the evil package, with some opinionated keybindings: "TAB" #'evil-jump-item "r" #'evil-replace-state "zC" #'hs-hide-level + "zO" #'hs-show-all "'" #'evil-goto-mark "`" #'evil-goto-mark-line "C-w" #'evil-window-map @@ -1109,13 +1110,13 @@ entry for ~auto-insert-alist~. args))))) #+end_src *** Yasnippet default -Look at the snippets [[file:.config/yasnippet/snippets/][folder]] for all snippets I've got. +Look at the snippets [[file:.config/yasnippet/snippets/][folder]] for +all snippets I've got. #+begin_src emacs-lisp (use-package yasnippet - :after evil + :defer t :hook (prog-mode-hook . yas-minor-mode) - (text-mode-hook . yas-minor-mode) :general (insert-leader "i" #'yas-insert-snippet) @@ -1234,7 +1235,16 @@ a 'project'. :after evil :hook (emacs-startup-hook . projectile-mode) :general + (general-def + :keymaps 'projectile-command-map + "t" #'projectile-test-project + "r" #'projectile-run-project + "q" #'projectile-replace-regexp) (leader "p" '(projectile-command-map :which-key "Projectile")) + (nmap + "" #'projectile-compile-project + "" #'projectile-configure-project + "" #'projectile-test-project) :init (setq projectile-tags-command "ctags -Re -f \"%s\" %s \"%s\"")) #+end_src @@ -1622,7 +1632,9 @@ are some corners I'd like to adjust). :general (nmmap :keymaps 'dired-mode-map - "T" #'dired-create-empty-file) + "T" #'dired-create-empty-file + "H" #'dired-up-directory + "L" #'dired-find-file) (dir-leader "w" '(wdired-change-to-wdired-mode :which-key "Write dired") "f" #'find-dired @@ -2004,7 +2016,9 @@ don't need to write everything myself. (display-buffer-same-window)) :general (leader - "g" '(magit-status :which-key "Magit")) + "g" '(magit-dispatch :which-key "Magit") + "vf" '(magit-file-dispatch :which-key "Magit file") + "vb" '(magit-blame :which-key "Magit blame")) (code-leader "b" #'magit-blame) :auto-insert -- cgit v1.2.3-13-gbd6f