add vterm to general.el keybinds

This commit is contained in:
Sakooooo 2024-08-05 16:49:58 +04:00
parent 26e55271c3
commit b685dd29b1
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -321,65 +321,66 @@ kept-old-versions 5)
#+end_src #+end_src
** General ** General
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package general (use-package general
:config :config
(general-create-definer sk/leader-keys (general-create-definer sk/leader-keys
:keymaps '(normal insert visual emacs) :keymaps '(normal insert visual emacs)
:prefix "SPC" :prefix "SPC"
:global-prefix "C-SPC") :global-prefix "C-SPC")
(sk/leader-keys (sk/leader-keys
;; code ;; code
"c" '(:ignore c :which-key "code") "c" '(:ignore c :which-key "code")
"cc" '(compile :which-key "compile") "cc" '(compile :which-key "compile")
"cC" '(recompile :which-key "compile") "cC" '(recompile :which-key "compile")
"cX" '(lsp-treeemacs-errors-list :which-ley "list errors") "cX" '(lsp-treeemacs-errors-list :which-ley "list errors")
;; toggles ;; toggles
"t" '(:ignore t :which-key "toggles") "t" '(:ignore t :which-key "toggles")
"tt" '(counsel-load-theme :which-key "choose theme") "tt" '(counsel-load-theme :which-key "choose theme")
"ts" '(hydra-text-scale/body :which-key "scale text") "ts" '(hydra-text-scale/body :which-key "scale text")
;; search ;; search
"s" '(:ignore s :which-key "search") "s" '(:ignore s :which-key "search")
"sb" '(swiper :which-key "search buffer") "sb" '(swiper :which-key "search buffer")
;; insert ;; insert
"i" '(:ignore i :which-key "insert") "i" '(:ignore i :which-key "insert")
"ie" '(emoji-search :which-key "Emoji") "ie" '(emoji-search :which-key "Emoji")
;; project ;; project
"p" '(:ignore p :which-key "projects") "p" '(:ignore p :which-key "projects")
"pp" '(project-switch-project :which-key "open project") "pp" '(project-switch-project :which-key "open project")
"pk" '(project-kill-buffers :which-key "close project") "pk" '(project-kill-buffers :which-key "close project")
"pt" '(magit-todos-list :which-key "list project todos") "pt" '(magit-todos-list :which-key "list project todos")
"po" '(project-find-file :which-key "find file") "po" '(project-find-file :which-key "find file")
"pc" '(project-compile :which-key "compile project") "pc" '(project-compile :which-key "compile project")
;; open ;; open
"o" '(:ignore o :which-key "open") "o" '(:ignore o :which-key "open")
"op" '(treemacs :which-key "treemacs") "op" '(treemacs :which-key "treemacs")
"oP" '(treemacs-find-file :which-key "treemacs find file") "oP" '(treemacs-find-file :which-key "treemacs find file")
"oe" '(eshell :which-key "eshell") "oe" '(eshell :which-key "eshell")
"or" '(elfeed :which-key "rss") "ov" '(vterm :which-key "vterm")
;; notes "or" '(elfeed :which-key "rss")
"n" '(:ignore o :which-key "notes") ;; notes
"na" '(org-agenda :which-key "agenda") "n" '(:ignore o :which-key "notes")
"nf" '(org-roam-node-find :which-key "find node") "na" '(org-agenda :which-key "agenda")
"nc" '(org-capture :which-key "capture") "nf" '(org-roam-node-find :which-key "find node")
"np" '(org-pomodoro :which-key "pomodoro") "nc" '(org-capture :which-key "capture")
"ne" '(:ignore ne :which-key "export") "np" '(org-pomodoro :which-key "pomodoro")
"nep" '(org-latex-export-to-pdf :which-key "pdf") "ne" '(:ignore ne :which-key "export")
;; quit "nep" '(org-latex-export-to-pdf :which-key "pdf")
"q" '(:ignore q :which-key "quit") ;; quit
"qq" '(delete-frame :which-key "close emacs") "q" '(:ignore q :which-key "quit")
"qK" '(kill-emacs :which-key "quit emacs") "qq" '(delete-frame :which-key "close emacs")
;; git "qK" '(kill-emacs :which-key "quit emacs")
"g" '(:ignore g :which-key "git") ;; git
"gs" '(magit-status :which-key "status") "g" '(:ignore g :which-key "git")
"gc" '(:ignore gc :which-key "create") "gs" '(magit-status :which-key "status")
"gcr" '(magit-init :which-key "init repo") "gc" '(:ignore gc :which-key "create")
"gcR" '(magit-clone :which-key "clone repo") "gcr" '(magit-init :which-key "init repo")
"gcc" '(magit-commit-create :which-key "commit") "gcR" '(magit-clone :which-key "clone repo")
"gci" '(forge-create-issue :which-key "issue") "gcc" '(magit-commit-create :which-key "commit")
"gcp" '(forge-create-pullreq :which-key "pull request") "gci" '(forge-create-issue :which-key "issue")
;; mail "gcp" '(forge-create-pullreq :which-key "pull request")
"m" '(mu4e :which-key "mu4e"))) ;; mail
"m" '(mu4e :which-key "mu4e")))
#+end_src #+end_src
** Evil ** Evil