Questions tagged [treemacs]

This tag is to be used for questions relating to the use of treemacs, a tree-layout file explorer tool for Emacs.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Wrong number of arguments: ((t) nil "Remove fringes in treemacs window."

I'm using treemacs as the file browser for my emacs. I've enabled kaolin-treemacs-theme for treemacs. (use-package kaolin-themes :config (load-theme 'kaolin-dark t) (kaolin-treemacs-theme)) My ...
Rajkumar Natarajan's user avatar
0 votes
0 answers
37 views

treemacs does not work with gnu Emacs 27.1

Can someone tell me if treemacs works with gnu-emacs 27.1. When I M-x treemacs I've got Error in post-command-hook (treemacs-post-command): (wrong-type-argument number-or-marker-p nil)
mcp's user avatar
  • 47
1 vote
1 answer
134 views

How to preview source file from treemacs in a project?

I'm using Doom Emacs with treemacs inside it. When I look through each source file from side tree, I need to press Enter to open the file. How to view the file content without Enter but just move the ...
Alpin Cleopatra's user avatar
0 votes
0 answers
15 views

treemacs window border is drawn over vertico-posframe: how to fix?

I use vertico-posframe to switch buffers. When treemacs is active, the border between the treemacs window and the text window is drawn over posframe with the buffer list: How can I fix this?
Yuriy Al. Shirokov's user avatar
0 votes
0 answers
70 views

Error on multi buffer rendering

I had been using emacs since 5-10 years ago and never had any single problem, I used to use Vanilla emacs with some configurations as Sebastiencs's Sidebar, now I'm using Doom emacs with treemacs. In ...
ca-hercor's user avatar
1 vote
1 answer
124 views

Why treemacs is showing all home files instead of CWD?

An emacs newbie here, i'm using doom emacs and i tried to use treemacs for navigation purposes however once i opened a project and toggle treemacs it shows the whole tree of files starting from $HOME,...
Question's user avatar
0 votes
0 answers
173 views

"Wrong type argument" adding projects to treemacs

I'm just setting up Treemacs for the first time. I am using Emacs' built in project management (not Projectile) and ideally want Treemacs to always show only the current project. Currently, if I run ...
tsvallender's user avatar
1 vote
0 answers
80 views

undo-tree changed Treemacs layout when move history cursor in Spacemacs

When I use Spacemacs with the Treemacs feature inside it, like the picture, I opened it by Alt Shift m + p + t Then use Ctrl x + u to open undo-tree When I move the cursor on the undo-tree by Ctrl + ...
madaha's user avatar
  • 11
1 vote
1 answer
400 views

No colored png icons in treemacs (Doom Emacs)

After reinstalling Doom Emacs several times I can’t find any way to make treemacs use the colored png icons of it’s own default theme. I always get monochrome icons. How do I solve this?
Mountain's user avatar
  • 111
1 vote
1 answer
225 views

Focus a buffer window if already visible; open a window with the buffer if not

I'd like to use a single function (and later keybind it to a single key) that would do the following: if treemacs is visible in the frame, focus to its window; if not, call treemacs. I took a look ...
Pavel Gurkov's user avatar
1 vote
0 answers
187 views

Treemacs really slow to open with medium size project

When I open for the first time Treemacs into a project (not only the first time ever, but every time I open the project) it can take some minutes to load, blocking Emacs. This is the CPU profile: - ...
DPD-'s user avatar
  • 251
0 votes
0 answers
153 views

After upgrade: Wrong type argument: treemacs-workspace, nil

I have just upgraded Treemacs on my GNU Emacs 27.2, from an ELPA version from 2 years ago to 20210516. But now when I try M-x treemacs, I get the following error: Wrong type argument: treemacs-...
Florent Georges's user avatar
2 votes
1 answer
712 views

C-x C-f Problem:

When i want to create a new file with C-x C-f (ido-find-file), and type main.lua, Emacs does not create a new file in the current directory (default-directory). Instead, it visits an existing main....
oleg harput's user avatar
1 vote
0 answers
113 views

Activate a mode when only one window is displayed

I'm trying to enable/disable visual-fill-column when there is one window/multiple windows. Since I don't like trying it on my own before asking, here is the solution I came up with: (defun my-visual-...
Lhooq's user avatar
  • 230
2 votes
1 answer
2k views

doom emacs "Symbol's function definition is void: make-treemacs-theme"

I'm using doom emacs with current commit c83e5e75e24706a0d6c15f3156d33b1c4f9dc365. When I do SPC o p I get error Symbol's function definition is void: make-treemacs-theme Below is the screenshot - ...
Rajkumar Natarajan's user avatar
1 vote
1 answer
228 views

Unmapping Treemacs `<prior>` and `<next>` (Page up and Page down)

I'm trying to unmap the <next> and <prior> key-bindings from Treemacs, because I find counterintuitive that it's the only place where they scroll a different window instead of the current ...
hariseldon78's user avatar
3 votes
2 answers
975 views

Couldn't resize project sidebar is doom emacs

I'm using doom emacs. I've enabled treemacs in ~/.doom.d/init.el I couldn't resize the project sidebar. I have tried this mac OS and opensuse 15.1 I get message <left-fringe> <mouse-drag-1&...
Rajkumar Natarajan's user avatar
2 votes
1 answer
358 views

How to generate and display tags in treemacs (for JavaScript)?

I'd like to generate a set of tags and then view them in Treemacs, ideally whenever I open a file that I can generate tags for. The docs for Treemacs' tag view say: Treemacs is able to display ...
MikeTheTall's user avatar
1 vote
0 answers
2k views

How to enable treemacs visibility on by default?

I have treemacs setup and currently using s-1 for toggle. But I would like to display the treemacs window always during startup. How to make it visible?
johndoe's user avatar
  • 111
5 votes
1 answer
717 views

Treemacs with Scala Metals/LSP: "Creating Pipe: Too Many Open Files"

I'm on spacemacs develop, emacs version 27, OSX Mojave 10.14. After adding the lsp layer and the snippet from the metals documentation here: to my .spacemacs file, treemacs will refuse to expand a ...
Metropolis's user avatar
1 vote
3 answers
634 views

.emacs complains about undefined functions/variables event after byte-compile

I use use-package and pulled in the treemacs package with the default settings. Then I byte-compiled my .emacsfile. But I still get a warning saying: the following functions might not be defined at ...
David S.'s user avatar
  • 395
0 votes
0 answers
58 views

Error initiating treemac

initiating treemac is giving this error. I just don't understand all the errors that emacs throws up. I just have (require 'treemacs) in init file. version-to-list: Invalid version syntax: ‘'"'...
Aviik's user avatar
  • 41
3 votes
0 answers
316 views

Keep projectile and treemacs in sync

Since projectile and treemacs are independent project and treemacs-projectile is written as helper. However I fail to understand the concept of it. I want to see all my projectile projects be shows ...
Xolve's user avatar
  • 131