Jousimies/.emacs.d

tab-line

Closed this issue · 0 comments

  (setq tab-line-tabs-function 'tab-line-tabs-mode-buffers)
  (setq tab-line-new-button-show nil)
  (setq tab-line-close-button-show nil)
  (setq tab-line-exclude-modes '(completion-list-mode
				 ebib-index-mode
				 ebib-entry-mode
				 org-roam-mode
				 org-agenda-mode
				 helpful-mode
				 pdf-outline-minor-mode
				 pdf-outline-buffer-mode
				 pdf-outline-follow-mode
				 mu4e-headers-mode
				 calendar-mode
				 elfeed-search-mode
				 elfeed-show-mode
				 elfeed-summary-mode))

  (face-spec-set 'tab-line-tab-current
		 '((((background light))
		    :foreground "#0068da" :inherit nil)
		   (t
		    :foreground "deep sky blue" :inherit nil))
		 'face-override-spec)

  (face-spec-set 'tab-line
		 '((((background light))
		    :inherit 'modus-themes-tab-backdrop)
		   (t
		    :inherit 'modus-themes-tab-backdrop))
		 'face-override-spec)

  (add-hook 'on-first-buffer-hook 'global-tab-line-mode)

  (global-set-key (kbd "s-p") 'tab-line-switch-to-prev-tab)
  (global-set-key (kbd "s-n") 'tab-line-switch-to-next-tab)