Configure project keymap
This commit is contained in:
parent
3b43cbc216
commit
f258207aab
1 changed files with 14 additions and 2 deletions
16
init.el
16
init.el
|
@ -124,6 +124,20 @@
|
|||
([remap downcase-word] . downcase-dwim)
|
||||
([remap capitalize-word] . capitalize-dwim)))
|
||||
|
||||
(use-package project
|
||||
:straight nil
|
||||
:config
|
||||
(keymap-set project-prefix-map "t" 'eat-project)
|
||||
(keymap-set project-prefix-map "RET" 'eat-project-other-window)
|
||||
(keymap-set project-prefix-map "g" 'magit-project-status)
|
||||
(setq project-switch-commands
|
||||
'((project-find-file "Find file")
|
||||
(project-find-dir "Find directory")
|
||||
(project-eshell "Eshell")
|
||||
(eat-project "Terminal")
|
||||
(eat-project-other-window "Terminal other window")
|
||||
(magit-project-status "Magit"))))
|
||||
|
||||
;; Theme configuration
|
||||
(use-package ef-themes
|
||||
:straight t
|
||||
|
@ -1016,8 +1030,6 @@
|
|||
("terminfo/65" "terminfo/65/*")
|
||||
("integration" "integration/*")
|
||||
(:exclude ".dir-locals.el" "*-tests.el")))
|
||||
:bind (("C-x RET RET" . eat-other-window)
|
||||
("C-x p RET" . eat-project-other-window))
|
||||
:config
|
||||
;; Enable M-o in semi-char-mode
|
||||
(add-to-list 'eat-semi-char-non-bound-keys [?\e ?o])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue