0

I want to have my editor work with tabs and I'm using centaur-tabs for that purpose. Below is my emacs config

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives
            '("melpa-stable" . "https://stable.melpa.org/packages/") t)

(unless (package-installed-p 'doom-themes)
  (package-refresh-contents)
  (package-install 'doom-themes))

(unless (package-installed-p 'centaur-tabs)
  (package-refresh-contents)
  (package-install 'centaur-tabs))

(unless (package-installed-p 'all-the-icons)
  (package-refresh-contents)
  (package-install 'all-the-icons))

(load-theme 'doom-one t)

(unless (package-installed-p 'treemacs)
  (package-refresh-contents)
  (package-install 'treemacs))

(use-package centaur-tabs
  :demand
  :config
  (centaur-tabs-mode t)
  :bind
  ("C-<prior>" . centaur-tabs-backward)
  ("C-<next>" . centaur-tabs-forward))

;;    (centaur-tabs-headline-match)

(setq centaur-tabs-style "bar")
(setq centaur-tabs-height 24)
(setq centaur-tabs-set-icons t)
(setq centaur-tabs-gray-out-icons 'buffer)
(setq centaur-tabs-set-bar 'over)
;; Note: If you're not using Spacmeacs, in order for the underline to display
;; correctly you must add the following line:
;;    (setq x-underline-at-descent-line t)
(setq centaur-tabs-close-button "x")
(setq centaur-tabs-set-modified-marker t)
(setq centaur-tabs-modified-marker ".")
;;(centaur-tabs-change-fonts "arial" 100)
(add-hook 'dired-mode-hook 'centaur-tabs-local-mode)
(setq centaur-tabs-cycle-scope 'tabs)

  (custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.

 '(package-selected-packages
   '(treemacs use-package doom-themes centaur-tabs all-the-icons)))

The tabs are displayed like this. As you see the icons are not displayed in front of the tabs.

How can I fix this issue?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.