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.
26 questions
0
votes
0
answers
12
views
treemacs file tree, set zig icon
in my treemacs file tree, i see icons for .c,.cpp,.rust, but not zig. So i downloaded the zig png, put it under
~/.emacs.d/icons/zig.png
and updated my treemacs config to this
(use-package lsp-...
1
vote
0
answers
41
views
Adjusting faces for Treemacs
In the screenshot you can see how Treemacs looks in my setup
On the left the entire body of the treemacs configuration itself, and on the right what I think it's relevant of my general theme/look ...
1
vote
0
answers
63
views
lsp-treemacs-symbols sometimes resets to the first node after RET action
After opening lsp-treemacs-symbols, navigating to a symbol and pressing RET, sometimes the 'point' in treemacs buffer is reset to the top position in a couple of seconds. But only sometimes. Instead, ...
1
vote
0
answers
62
views
treemacs error window keeps growing in size
I recently started using lsp-treemacs and I mostly like it. It would be nice if it auto-jumped to the file for the current buffer, but I can work around that.
However, the biggest complaint that I ...
0
votes
0
answers
113
views
Split horizontally after installing treemacs
I have installed treemacs package and I have enabled it in init.el file to open the treemacs on start-up. However, this also splits my window horizontally as in the picture below. I do not want the ...
1
vote
0
answers
131
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)
1
vote
1
answer
556
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 ...
0
votes
0
answers
151
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 ...
2
votes
1
answer
958
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,...
0
votes
0
answers
503
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 ...
2
votes
1
answer
205
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 + ...
2
votes
1
answer
888
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?
1
vote
1
answer
575
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 ...
1
vote
0
answers
372
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:
- ...
0
votes
0
answers
271
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-...
2
votes
1
answer
1k
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....
1
vote
0
answers
181
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-...
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 -
...
1
vote
1
answer
422
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 ...
4
votes
2
answers
1k
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&...
2
votes
1
answer
521
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
...
2
votes
0
answers
3k
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?
5
votes
1
answer
976
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 ...
1
vote
3
answers
854
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 ...
0
votes
0
answers
72
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: ‘'"'...
4
votes
0
answers
495
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 ...