From e4ef883fba99bbc673ec8ccafdadb0f9096a2229 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 12 May 2023 18:34:08 +0100 Subject: Load tab-bar.el after project.el --- init.el | 12 +++++++++--- 1 file 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)) -- cgit