Config: add basic magit config

This commit is contained in:
2026-05-10 22:04:30 +08:00
parent fddfe9859d
commit 68c7f8ba0d
6 changed files with 37 additions and 15 deletions

View File

@@ -66,8 +66,8 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
nil 0 nil
(file-name-directory (expand-file-name file)))))
(defun consult-fd-global ()
"Search for all files use fd"
(defun consult-fd-home ()
"Search for all files in home folder use fd."
(interactive)
(let ((consult-fd-args "fd -H -I -i -c never --full-path")
(default-directory "~/"))
@@ -126,6 +126,12 @@ Disable jinx-mode if it's enable and global-jinx-mode is disable , otherwise tog
(forward-line 1)
(dired-move-to-filename))
(defun my-magit-toggle-parent-section ()
"Toggle parent magit section."
(interactive)
(magit-section-up)
(magit-section-toggle (magit-section-at)))
(provide 'init-kbd-func)
;;; init-kbd-func.el ends here