aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config/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