From 5af69b94ade1639cffeeccb619c43def02df5e10 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Fri, 19 Jul 2024 13:58:09 +1200 Subject: [PATCH] emacs: style breadcrumb imenu face --- .emacs.d/init.el | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index f651a98..3228795 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -221,6 +221,18 @@ value `italic'." (package-install 'magit) (global-set-key (kbd "C-c b") 'magit-blame) +;; breadcrumbs +(package-install 'breadcrumb) +(setq breadcrumb-project-crumb-separator " ] " + breadcrumb-imenu-crumb-separator " > ") +(add-hook 'prog-mode-hook + #'(lambda () + (setq header-line-format + '(" " + (:eval (breadcrumb-project-crumbs)) + " : " + (:eval (breadcrumb-imenu-crumbs)))))) + ;; faces (require 'cus-edit) ; custom faces (let @@ -255,7 +267,8 @@ value `italic'." (info-xref :inherit link :background "#181825" :foreground ,accent) - (anzu-mode-line :foreground ,accent)))) + (anzu-mode-line :foreground ,accent) + (breadcrumb-imenu-leaf-face :foreground ,accent)))) ;; custom (setq custom-file "~/.emacs.d/custom.el") @@ -271,18 +284,6 @@ value `italic'." (package-install 'nyan-mode) (nyan-mode) -;; breadcrumbs -(package-install 'breadcrumb) -(setq breadcrumb-project-crumb-separator " ] " - breadcrumb-imenu-crumb-separator " > ") -(add-hook 'prog-mode-hook - #'(lambda () - (setq header-line-format - '(" " - (:eval (breadcrumb-project-crumbs)) - " : " - (:eval (breadcrumb-imenu-crumbs)))))) - ;; dashboard (package-install 'dashboard) (setq dashboard-banner-logo-title "Welcome to GNU Emacs, one component of the GNU/Linux operating system."