This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
dianciemacs/lisp/keybinds.el

36 lines
860 B
EmacsLisp
Raw Normal View History

;; This file contains keybindings for Dianciemacs
2022-11-09 07:02:57 +00:00
;; Files
(general-create-definer diancite/file
:prefix leader-key)
(diancite/file
:keymaps 'normal
"f f" '(find-file :wk "Find File")
"f s" '(save-buffer :wk "Save Buffer"))
;; Magit
(general-create-definer diancite/magit
:prefix leader-key)
(diancite/magit
:keymaps 'normal
"m s" '(magit-status :wk "Status")
"m d" '(magit-dispatch :wk "Dispatch")
2022-11-16 17:08:10 +00:00
"m f" '(magit-file-dispatch :wk "File Dispatch"))
2022-11-14 21:24:46 +00:00
;; Flymake & LSP
(general-create-definer diancite/lsp
:prefix leader-key)
(diancite/lsp
:keymaps 'normal
"l" '(:wk "LSP")
"l n" '(flycheck-next-error :wk "Next Error")
"l p" '(flycheck-previous-error :wk "Previous Error")
2022-11-14 21:24:46 +00:00
"l f" '(eglot-format :wk "Format Buffer")
"l w" '(:wk "Server")
2022-11-15 22:02:56 +00:00
"l w r" '(eglot-reconnect :wk "Restart Server")
"l w q" '(eglot-shutdown :wk "Shutdown Server"))