summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2023-05-12 18:34:08 +0100
committerYann Herklotz <git@yannherklotz.com>2023-05-12 18:34:40 +0100
commite4ef883fba99bbc673ec8ccafdadb0f9096a2229 (patch)
tree206cad1acdd4acaeaa21828dbd841fad4d23a9bf
parente11f6fab9eb28d02aef11976785915c1ded6d449 (diff)
downloadymh-emacs-e4ef883fba99bbc673ec8ccafdadb0f9096a2229.tar.gz
ymh-emacs-e4ef883fba99bbc673ec8ccafdadb0f9096a2229.zip
Load tab-bar.el after project.el
-rw-r--r--init.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/init.el b/init.el
index 0dd683e..615cc8b 100644
--- a/init.el
+++ b/init.el
@@ -110,6 +110,10 @@ Should be one of `:white-split', `:modified' or `:default'")
(unless (package-installed-p 'use-package)
(package-install 'use-package))
+(eval-when-compile
+ (require 'use-package))
+(require 'bind-key) ;; if you use any :bind variant
+
;; Load my local library of common emacs functions.
(use-package ymh-emacs
:load-path "ymh-emacs"
@@ -329,6 +333,9 @@ https://yannherklotz.com"))
(delight 'eldoc-mode nil "eldoc"))
(use-package project
+ :demand t
+ :bind (:map project-prefix-map
+ ("m" . magit-project-status))
:custom
(project-switch-commands
'((project-find-file "Find file")
@@ -336,12 +343,11 @@ https://yannherklotz.com"))
(project-find-dir "Find directory")
(project-vc-dir "VC-Dir")
(magit-project-status "Magit")
- (project-eshell "Eshell")))
- :config
- (define-key project-prefix-map "m" #'magit-project-status))
+ (project-eshell "Eshell"))))
(use-package tab-bar
:demand t
+ :after project
:bind (:map tab-prefix-map
("D" . toggle-frame-tab-bar)
("p" . ymh-tabs-switch-project))