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.

Treemacs is a tree-layout file explorer for Emacs. It is similar to NeoTree or vim's NerdTree, but it was inspired by the Project Explorer in Eclipse. It provides the file system outline of your projects in a simple tree layout, allowing quick navigation and exploration, while also possessing basic file management utilities.

23 questions
5
votes
1 answer

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 directory and display its contents, giving the…
Metropolis
  • 529
  • 2
  • 16
4
votes
0 answers

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 in treemacs as I add them via projectile (and be…
Xolve
  • 141
  • 2
3
votes
2 answers

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 is undefined. Do I miss any configuration?
2
votes
1 answer

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.lua which is in another directory. Similarly when I…
2
votes
1 answer

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 - How can I fix this issue?
2
votes
1 answer

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 not only the file system, but also tags found in…
MikeTheTall
  • 659
  • 4
  • 11
2
votes
0 answers

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?
John Doe
  • 121
  • 3
1
vote
0 answers

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
  • 67
  • 3
1
vote
1 answer

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 cursor in the tree menu?
1
vote
1 answer

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, i saw somewhere…
Question
  • 21
  • 3
1
vote
0 answers

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 + p, the layout had been resized Even I close the…
madaha
  • 11
  • 1
1
vote
1 answer

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
  • 111
  • 1
1
vote
1 answer

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 at window-buffer and get-buffer-window, however…
Pavel Gurkov
  • 113
  • 3
1
vote
0 answers

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: - command-execute …
DPD-
  • 251
  • 1
  • 9
1
vote
0 answers

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-fill-one-window () …
Lhooq
  • 230
  • 3
  • 10
1
2