Config: add basic magit config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user