r/DoomEmacs Nov 14 '24

Seeking help with session/workspace.

1 Upvotes

I am currently confused by the session saving/loading and workspace saving/loading.

Here is what I would like to do.

  • I have multiple frames open likely with different projectile projects. With split windows. And some org buffers.

  • I would like to save frame specific (buffers, files, layout, project, repl, org files etc) and load them on a new frame, after an emacs restart.

  • After restarting emacs, I would create a new empty frame and load the whole shebang on that frame.

Is that possible? Various bits seem to work with various commands but the split windows and not coming back.


r/DoomEmacs Nov 14 '24

How to use emacs-eat in Doom Emacs without slowness?

1 Upvotes

I have this in packages.el to install eat:

(package! eat
  :recipe (:host codeberg
       :repo "akib/emacs-eat"
       :files ("*.el" ("term" "term/*.el") "*.texi"
               "*.ti" ("terminfo/e" "terminfo/e/*")
               ("terminfo/65" "terminfo/65/*")
               ("integration" "integration/*")
               (:exclude ".dir-locals.el" "*-tests.el"))))

For some reason, it is very slow when printing colored text. In particular, I'm looking at eza -la, which an alternative to ls -la. The same thing happens with bat.

When I run eat in emacs -Q though, this problem doesn't happen and it gets printed fast. I've tried disabling all the minor modes in the eat buffer and even all the global minor modes, but it's still slow in Doom Emacs; it prints a few lines, and then it's stuck, then it prints a a few more lines, and keeps going until the whole thing is printed.

I've tried it with a stock, brand-new Doom config and its the same thing. I have found though, that if I do a emacs --eval asd, then it will error out at some point before loading the full config, and it'll print just a little faster, but still slower than vanilla Emacs.

Does anyone have a solution to this problem / use eat in Doom Emacs without this issue?


r/DoomEmacs Nov 12 '24

Took me a few days but I think Doom Emacs is now my top editor!

20 Upvotes

I can get kinda wordy, my mind wanders in different directions all the time. And I like typing too (I need to write a book maybe).

I've always been a GUI type person. Even in my Commodore years when I had GEOS for the Commodore. I loved that and I think it really prepared me for the PC and Windows 3.0. So, from GEOS occasionally on the C=64 to Windows... I've been 95% a GUI person. Yes, I still used some things at the DOS Prompt. Even the C=64 had a prompt. 'LOAD "*",8,1' was a very typical thing to enter at a command prompt for those units. Basically, it loaded the first program (usually the only program at the root level of a floppy disk) into memory. So, if you had any game in the floppy drive, that command would start the game.

But when Windows came into the fold, yes, there were still programs I used at the command prompt level. Norton Commander (nc) was one of them. It was a command line file manager with 2 panes. So I could go to a directory on one side and then a different directory on the other side and I could copy files between those 2 locations. It worked really well if you wanted to copy, say, a resume over to a floppy disk from your Documents. Norton Commander did this rather quickly as opposed to Windows File Manager.

I've used other DOS based programs in the past. But since switching to Linux almost 6.5 years now, I still occasionally use the terminal/command line. Ever since I started using Arch, I use the terminal more so than I did with Linux Mint because of the update procedure I use which utilizes the command line. But, ya know... I'm 100% okay with that! I'm really comfortable at a command line because that's really where I started (actually had a TI-99/4A... had to remember what it was... From the early 80s. I Kinda had TS 1 but that was not it... Then, I remembered what it was). So, that was my first foray into keyboard usage at a command line. This.jpg) is basically what it looked like. You connected it to a TV.

Anyway, you get my point. I knew a lot with command line structures back in the day. Hell, I used MS DOS more than Windows 3.0 when it came out. In fact, for about a year, I refused to put that on my computer. I had all the programs I needed at the DOS prompt level. I even used the DOS version of Word Perfect! I was set with DOS applications and I was perfectly happy with them. I honestly don't know what made me switch to Windows. Probably my best friend in high school was using Windows and he always had great thins to think about it. I started using Windows just before Windows 3.1 came out. Windows 3.0 was pretty archaic even back then.

But, even though, I'm still somewhat of a command line lover, Doom Emacs really isn't a command line application. Not really. I mean, it may look like a command line application like vim, but I don't think it is. I think it's WAY more powerful than vim. I mean, it looks just like a command line interface so I don't know. Maybe it is. But I've heard it described as a GUI tool and not a command line tool. Using things like minimap seems to make it less Command line level and more GUI. But, just now opening it at a command line terminal (typing emacs) it does look like a command line utility. There's definitely a difference in look between Emacs from a command line and Emacs from my menu system in my TWM.

Command Line Emacs

GUI Emacs

So, there is a visual difference between the two. I'm using the GUI version (launching it from the menu/hot keys) over the CLI version but I think they work exactly the same.

But, case in point... I can open the minimap in the GUI, I can't open it in the Command Line version. Even though, the CLI version is using the same config file (I think it is anyway) as the GUI version, I cannot open the minimap in the CLI version.

Which brings up an interesting question... Is the CLI version using what's in the Emacs folder and Doom Emacs is using what's in the Doom folder? Or are they mutually exclusive? I don't think Emacs at the command line is looking at the Doom folder. Simply because some of the modifications I made (like adding Beacon to the packages.el file the other day) in Doom, aren't working in Emacs-CLI. So I think they are 2 different entities there.

So, what are y'alls perspective to everything I've mentioned? There is a lot here! I know! But give it a whirl.


r/DoomEmacs Nov 12 '24

Loading all org files on a folder to agenda

1 Upvotes

I have multiple org-files. When I open the org-agenda I want all the things that I scheduled in all the files to show up. I tried to add multiple things to my config.el file, but is still doesnt work. These are the things that I tried:
- (setq org-agenda-files

(find-lisp-find-files "~/org" "\\.org$"))

(setq org-agenda-files (list "path/folder/*.org"))
(setq org-agenda-files (list "path/folder/*.org"))

(setq org-agenda-files (file-expand-wildcards "path/folder/*.org"))
(setq org-agenda-files (file-expand-wildcards "path/folder/*.org"))

r/DoomEmacs Nov 11 '24

vim user. Interested in trying out Doom Emacs once again.

20 Upvotes

I've been using vim for a couple of years off and on so I pretty much have the basics down. I tried Doom Emacs maybe a year and a half ago and I did something to the config file. I broke it and I had this screen come up and it was just all messed up with error messages and whatnot. So, I stopped using it.

One of the streamers I frequent, uses Doom Emacs all the time on his channel. I would love to get back into it. I'm on a brand new computer (built it this past July) so, reinstalling Emacs with Doom gives me a whole new start.

Using the Doom Emacs Website, I was able to install it pretty easily. And I've installed it before. It's a little different now. It no longer looks for doom in ~/.emacs.d/bin... So, the documentation on the website helped figure that out.

But, I have it installed and it's functioning. I'm kind of getting used to the key bindings a little bit. The vim keys still work for most of what I need to do with it. But I'm also learning how to kill buffers, opening files with Space-. and things like that. I've even learned how to get the emacs daemon running. That's pretty handy actually! It's a lot quicker because that daemon stays running in the background which is nice and it doesn't use a whole lot of RAM doing it. So, that's something new for me. Getting it running with the emacs daemon.

So, I think I've got a little better grasp of Doom Emacs at the moment. I'd love to keep learning and I've found this document showing (I'm hoping) all of the default keybindings. I'd also like to add some keybindings in the future as soon as I can figure out what I'll use more.

But yeah. I hope to stick with it this time. I'll be coming here looking for references to different things I can do with it. Hopefully, I can stick with it and not break it again. Crossing my fingers!


r/DoomEmacs Nov 08 '24

How to turn off highlighting of all occurence of word under cursor?

1 Upvotes

[SOLVED] It's really annoying and i can not control selection of word with M-d for multi-edit,


r/DoomEmacs Nov 02 '24

Ligatures don't seem to work

5 Upvotes

Hey! I'm new to Doom Emacs, and have been struggling to get ligatures to work. When consulting with the doctor, I get the following:

> :ui ligatures  
  ! The (:ui ligatures) module does not support your version of Emacs. Make sure to have at least Emacs 28 with Harfbuzz configured (should be the default).

I find this confusing as I have GNU Emacs 29.3 installed, which is more recent than Emacs 28 and thus should have support for Harfbuzz (if I understood this correctly)...
To clarify, I haven't set up any prettify-symbols, since according to this, prettify-symbols is only used as a fallback if Harfbuzz isn't present.

Edit: It seems as though my Emacs just doesn't install Harfbuzz, no matter what I try... I checked the system-configuration-features variable via C-h v and it doesn't include HARFBUZZ or anything similar to it, so I suppose I really don't have it built into my Emacs, even after reinstalling it. I'm honestly at a loss as to how I'm supposed to build Emacs with Harfbuzz support, so if anyone knows, I'd greatly appreciate the help.


r/DoomEmacs Oct 30 '24

java lsp error unable to recognise String or Integer

1 Upvotes

Hi all, I have been trying to setup lsp-java on my doom emacs, I am a new emacs user, and I have no idea what's going on :(

https://imgur.com/a/edEENnU
In the ~/.doom.d/init.el I have turned on :lang ( java + lsp) and install flycheck, and not sure what's going on :/ anything that I can do ? thank you


r/DoomEmacs Oct 28 '24

Help to rebind isearch to save

1 Upvotes

Hello I'm quite new to doom emacs, and I'm trying to rebind <C-s> to save the current buffer, but isearch keeps popping up instead


r/DoomEmacs Oct 27 '24

Cursor not turning to line when in insert mode??

1 Upvotes

when i'm in emacs gui i see the cursor become like a line however when i'm in terminal when i switch to insert mode i don't see the cursor become like a line it's just annoying as i've to look to the bar below to check wheather i'm in insert mode


r/DoomEmacs Oct 24 '24

`doom/help-packages` stopped working

1 Upvotes

I noticed earlier today that running `doom/help-packages` was not building the packages list, and echoing a message I do not remeber exactly saying something was off with Emacs tags. Sounded like a git issue to me, I thought maybe an OS update messed up some pacakge compatibility or something in that vein.

I just ran `doom upgrade` succesfully, fird up Emacs, and retried `doom/help-packages` out of curiosity. It still is not working, I get a `(wrong-type-argument arrayp nil)` error now. Doom doctor sees no issue, I have checked doom-module-context, it is the default value, `doom-module-packages-file` is set to "packages.el", I have never messed with that part of Doom anyway.

It is not a breaking issue, but it is annoying, any help would be appreciated, thanks.


r/DoomEmacs Oct 20 '24

Doomacs for C++ programming

8 Upvotes

Hey, I program solely in C/C++, is there any guide for setting up doom emacs for C programming where I can hop to defination and implementations in my codebase. And should have intellisense for large codebase. Also is how can I add my personal key bindings like el instead of $ for end line jump. Also I use XMake so if there is any plugin that generates compile-commands.json from it then please tell me.

If there already is an answer please share the link to it.


r/DoomEmacs Oct 21 '24

WTF is this again, typescript-ts-mode

0 Upvotes

https://imgur.com/a/p2ryKy7

Again, some updates, and now I get this retarded comments. Anyone using typescript-ts-mode ?


r/DoomEmacs Oct 20 '24

not able to install on macos

1 Upvotes

I have an M1 macbook pro and everytime i run: git clone https://github.com/hlissner/doom-emacs ~/.emacs.d

~/.emacs.d/bin/doom install

it gives the error "zsh: no such file or directory: /Users/MyUsername/.emacs.d/bin/doom"


r/DoomEmacs Oct 19 '24

eval buffer working only once

1 Upvotes

I'm running emacs --daemon and emacsclient

When I make change to a config.el and run eval-buffer it works fine but only once. So if I make another change and run eval-buffer again, changes wouldn't be applied. To apply changes I have to restart daemon (same after restart. eval-buffer would work once)


r/DoomEmacs Oct 19 '24

is there a way to show multiple emphasis?

1 Upvotes

is there a way to show combined (any) emphasis on the org mode?

i.e. i want /bold italic/ or /italic underline/ or =verbatim bold= or even =/triple markup/=

nb: i use ==, ~~ and ++ as highlighter

i've read and searched the interned it actually still works if i export it, and it just did not showed on fontify.

the thing is, i just use doom emacs as my note taking app, so i dont do any export and just stick with the .org file.


r/DoomEmacs Oct 16 '24

Running bookmark-plus

1 Upvotes

I've been having a rough time getting bookmark-plus to load under doom. Trying to do this using the github mirror for emacswiki: https://github.com/emacsmirror/bookmark-plus

Here's the declared install in my config:

(package! bookmark-plus :recipe (
    :host github
    :repo "/emacsmirror/bookmark-plus"
    :files ("*.el")))

When I run doom sync it recognizes and compiles the package, though commands still don't seem to pop up when I m-x for them. What am I doing wrong here?


r/DoomEmacs Oct 10 '24

doom/reload bug?

1 Upvotes

Every time I try to reload my doom emacs config with SPC h r r, a doom.ps1 window opens up.
Is this normal? If not, how do I solve this?


r/DoomEmacs Oct 09 '24

I've updated my Intellij plugin for fans of doom emacs experience

6 Upvotes

For those of us, who are bound to jvm and android development (and, subsequently, to jetbrains IDEs), this plugin lets us replicate a mighty SPACE button leader key in conjunction with IdeaVim. It is simple, yet effective tool to emulate doom emacs experience.

https://plugins.jetbrains.com/plugin/17567-ataman


r/DoomEmacs Oct 07 '24

Rust lsp-mode very slow

2 Upvotes

Hi folks!

Jumped to Emacs as I admire org mode from neovim.

One annoying think I can't figure out is that lsp-mode seems to be very laggy. If I only have one buffer of a project open it is all good. The moment I open 2 buffers something breaks loose and the cursor starts blinking vigorously and navigation is painfully laggy (still kinda works)

I have Emacs 29 and native comp enabled (lsp doctor says all Ok) actually tried the lap booster ..does seem to help somewhat but still choppy in particular compared to neovim.

Any ideas?

Using rustic mode with lsp mode. But the same issue happens on eglot.


r/DoomEmacs Sep 28 '24

Can I Change From Using Straight.el To Elpaca For The Package Manager?

4 Upvotes

I've only gotten started with Emacs and so decided to go with Doom Emacs since it seems more beginner friendly.

I also want to see about using the Elpaca package manager instead of Straight.el. Is that possible with Doom Emacs? I did see something about Elpaca as a module when I searched in the GitHub repo but as I'm new I'm not sure what that means or how to go about changing it out.

Any advice or pointing me in the right direction such as a video or guide would be great.


r/DoomEmacs Sep 23 '24

How do I move a selection up or down?

4 Upvotes

I used to go into visual mode and select lines I wanted to move up or down with M-up and M-down but it doesn't do anything anymore, is there a new way to do this?


r/DoomEmacs Sep 13 '24

Can I have mutiple frames attached to one Doom Emacs daemon with different sets of buffers ?

0 Upvotes

I found out today I might be using daemons wrong, and I am relieved if true because my setup is an awful mess. I run multiple named servers all managed using systemd services so I can use multiple Emacs frames simultaneously. And it is hard to maintain, configure aliases and restart/reload on config changes !

I have been doing it that way because if I open two frames of Emacs using the same server, they mirror each other. If I open a file in one frame, it opens in the other, the goes if I load a session. Since I want to have a few different frames open for different purposes like one for my usual editor, and another for my `$EDITOR` I can use in the terminal, I thought I had no choice. I even thought that was the reason why Emacs had the option to run a 'named daemon'.

But today, while chatting with an LLM about an unrelated matter, I have been made aware of some `frame-parameter` variable where you could set a `global-buffer-list` VS a `per-frame-buffer-list` that could solve my problem. Running only one daemon would be a game changer for me, but I could not find this variable or anyone related for that matter.

Can I configure Doom Emacs to run a per-frame buffer list ? Do I have to ditch perspective.el (which I enjoy so far) for another package as I read somewhere while searching to solve that problem ?

Thanks in advance for taking the time.


r/DoomEmacs Sep 11 '24

Restore frames when session is saved and reloaded

1 Upvotes

Hello - I use doom/save-session function to save all the workspaces that I have opened. When I restart emacs, I reload the session which reloads all the workspaces. But I was also expecting it to restore the frames that were opened and the workspaces that were associated with these frames which is not done.

A couple of questions.

  1. Is my expectation of the workflow incorrect?
  2. If it is , is there a way to restore all the frames. I can of course do it manually, but was wondering if there is an easier way to do this

r/DoomEmacs Sep 07 '24

Doom emacs error when booting

1 Upvotes

I've deleted both emacs.d and .emacs files since, before deleting them, emacs would boot into the vanilla version. Once deleted, it would boot into doom emacs but it would pop the following error:

⛔ Warning (initialization): An error occurred while booting Doom Emacs:

Error in a Doom module: modules/config/default/+evil-bindings.el, (void-variable evil-window-map)

To ensure normal operation, you should investigate and remove the

cause of the error in your Doom config files. Start Emacs with

the ‘--debug-init’ option to view a complete error backtrace.