Function: treemacs-load-all-the-icons-with-workaround-font
treemacs-load-all-the-icons-with-workaround-font is a byte-compiled
function defined in treemacs-compatibility.el.
Signature
(treemacs-load-all-the-icons-with-workaround-font FONT)
Documentation
Load the treemacs-all-the-icons package using a workaround FONT for tabs.
Use this if you experience the issue of icons jumping around when they are closed or opened which can appear when using specific fonts.
FONT should be a simple string name, for example "Hermit".
Finding the right FONT is a matter of trial and error, you can quickly try
different fonts using set-frame-font.
The workaround will overwrite the values for treemacs-indentation and
treemacs-indentation-string, using your own values for them is no longer
possible.
Can only work if the treemacs-all-the-icons module has not been loaded yet.
Source Code
;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-compatibility.el
(defun treemacs-load-all-the-icons-with-workaround-font (font)
"Load the `treemacs-all-the-icons' package using a workaround FONT for tabs.
Use this if you experience the issue of icons jumping around when they are
closed or opened which can appear when using specific fonts.
FONT should be a simple string name, for example \"Hermit\".
Finding the right FONT is a matter of trial and error, you can quickly try
different fonts using `set-frame-font'.
The workaround will overwrite the values for `treemacs-indentation' and
`treemacs-indentation-string', using your own values for them is no longer
possible.
Can only work if the `treemacs-all-the-icons' module has not been loaded yet."
(defvar treemacs-all-the-icons-tab-font font)
(setf treemacs-indentation 1
treemacs-indentation-string (propertize "\t" 'face `((:family ,treemacs-all-the-icons-tab-font))))
(require 'treemacs-all-the-icons)
(treemacs-load-theme "all-the-icons"))