Configure project keymap

This commit is contained in:
Dimitri Lozeve 2024-07-07 22:41:24 +02:00
parent 3b43cbc216
commit f258207aab

16
init.el
View file

@ -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])