From 887252589f3609b70cfaa4d33105f4f6541c8001 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 29 May 2020 14:35:12 -0400 Subject: [PATCH] Disable mode line in dired sidebar --- emacs/init.org | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/emacs/init.org b/emacs/init.org index fda7318..8433a73 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2412,23 +2412,23 @@ UI-related keybindings: #+BEGIN_SRC emacs-lisp (use-package centaur-tabs :commands (centaur-tabs-mode - centaur-tabs-local-mode - centaur-tabs-mode-on-p) + centaur-tabs-local-mode + centaur-tabs-mode-on-p) :init (setq centaur-tabs-set-icons t - centaur-tabs-gray-out-icons 'buffer - centaur-tabs-height 30 - centaur-tabs-set-bar 'under - x-underline-at-descent-line t - centaur-tabs-set-modified-marker t - centaur-tabs-show-navigation-buttons t - centaur-tabs-down-tab-text " ☰ " - centaur-tabs-backward-tab-text " ◀ " - centaur-tabs-forward-tab-text " ▶ " - centaur-tabs-close-button "✕" - centaur-tabs-modified-marker "⬤" - centaur-tabs-cycle-scope 'tabs - centaur-tabs-label-fixed-length 20) + centaur-tabs-gray-out-icons 'buffer + centaur-tabs-height 30 + centaur-tabs-set-bar 'under + x-underline-at-descent-line t + centaur-tabs-set-modified-marker t + centaur-tabs-show-navigation-buttons t + centaur-tabs-down-tab-text " ☰ " + centaur-tabs-backward-tab-text " ◀ " + centaur-tabs-forward-tab-text " ▶ " + centaur-tabs-close-button "✕" + centaur-tabs-modified-marker "⬤" + centaur-tabs-cycle-scope 'tabs + centaur-tabs-label-fixed-length 20) (leader-def-key "uT" #'centaur-tabs-mode) (centaur-tabs-mode) :config @@ -2464,7 +2464,8 @@ UI-related keybindings: (advice-add 'centaur-tabs-hide-tab :around (lambda (oldfn buf &rest args) (if (with-current-buffer buf - (eq major-mode 'vuiet-mode)) + (or (eq major-mode 'vuiet-mode) + (eq major-mode 'dired-sidebar-mode))) t (apply oldfn buf args))))