aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-09-22 14:51:24 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-09-22 14:52:10 +0100
commit2b24770fa97db0b00c982727a7b44e5a1234ef2e (patch)
tree1a90700eb5acb17cc6108e7d18695b6d46eef4b3 /Emacs
parent66fa84dd1000982f7de4a7a511ee2b631cc437d1 (diff)
downloaddotfiles-2b24770fa97db0b00c982727a7b44e5a1234ef2e.tar.gz
dotfiles-2b24770fa97db0b00c982727a7b44e5a1234ef2e.tar.bz2
dotfiles-2b24770fa97db0b00c982727a7b44e5a1234ef2e.zip
(Emacs)~modified keybindings
Main one is "<SPC>-g" being magit-dispatch now.
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/config.org24
1 files changed, 19 insertions, 5 deletions
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
+ "<f5>" #'projectile-compile-project
+ "<f6>" #'projectile-configure-project
+ "<f7>" #'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