r_emacs | Unsorted

Telegram-канал r_emacs - /r/emacs

70

This channel is a feed for r/emacs. @r_channels @reddit2telegram

Subscribe to a channel

/r/emacs

agent-shell-dashboard
https://github.com/wandersoncferreira/agent-shell-dashboard

https://redd.it/1usncgd
@r_emacs

Читать полностью…

/r/emacs

Emacs keep freezing the whole system.

Hi. I'm new to emacs.

When I open a certain tab in emacs or sometimes even randomly, the whole system freeze.

This is an emacs problem, everytime I open emacs, after some second or minutes it happens.

I tried everything, checked kernel logs, checked every related log to GPU or emacs.

Turned of gpu acceleration, changed backend to x11, reinstalled it, etc.

Setup: arch, Wayland, GNOME

I use open source Nvidia driver.

Note: my system is old, gt210 gpu, i5 2400

But it works perfectly on gnome, vscode, nvim and other apps.

https://redd.it/1ushn8l
@r_emacs

Читать полностью…

/r/emacs

Is it normal for lsp-mode to be somewhat laggy? (Is Eglot better?)

I don't know if i'm too demanding perhaps and other people just aren't that bothered by it, or if something is wrong on my end, but lsp-mode has noticable lag when typing, and it drives me crazy. I've already made all the performance tweaks that lsp-mode suggests doing and lsp-doctor reports everything as "OK". Initially i thought the completion from company was the issue, and while it did have some lag, setting the prefix length to atleast 2 instead of 1 solved that mostly, but there's still lag outside of company. I've already tried disabling lsp-ui and flycheck, but that didn't work either. It's starting to seem like it's the actual communication with the lsp server that's causing slowdown. I've tried this with python and C. Another thing i've tried is messing with gc-threshold, either setting it very high to 1GB, or lower to like 1MB didn't make a difference either. Is this just an inherent Emacs limitation? I decided to try my old Helix setup just to check and lsp is super fast there, even with completions starting at just one character. Is Eglot better when it comes to speed? The issue is i love stuff like magit atp so i don't want to leave Emacs behind if i can't solve this. Almost makes me consider setting up vterm in that case and running Helix inside of Emacs lmao.

https://redd.it/1ush2jp
@r_emacs

Читать полностью…

/r/emacs

Emacs as an Email client

So I am a long time Neovim user (sorry...) and I was wondering if Emacs is worth it to use as an email client, since I cannot find a good tui solution for handling mail. So how good is it? Would you have use it even if you weren't using Emacs as your everyday driver?

https://redd.it/1usfdrh
@r_emacs

Читать полностью…

/r/emacs

How to deal with csv files , any package tips ?

Hello everyone,



As part of my daily routine, I often look at CSV files containing analysis results. I was wondering which package you would recommend for quickly viewing and filtering a CSV file?

I've tried csv-mode, but I find it a bit difficult to get the hang of—for example, if I want to keep my header column and reorder the file by column, I haven't quite figured out how to do it.

Best

Tristan

https://redd.it/1urqttf
@r_emacs

Читать полностью…

/r/emacs

Transferring from doom to vanilla

https://preview.redd.it/gedd21nhb4ch1.png?width=382&format=png&auto=webp&s=6e8048d6bd79433c398a5204baa2934fdb57e62c

how can I have this similar thing from doom where it highlights active major and minor modes in vertico

https://redd.it/1urdtbx
@r_emacs

Читать полностью…

/r/emacs

Looking for ideas or recommendations for developing new Emacs plugins.

Some background about me:-

I am a relatively new generation emacs user. I have been using emacs from the past few months, and been absolutely loving the experience alongside emacs, I have also been learning emacs lisp so I can better understand how emacs works under the hood and how plugins actually behave.

I am now planning to write my first emacs plugin, and I would love to get some ideas. Is there any feature you feel is missing from emacs, or something you have wished existed? I am looking for ideas that could be genuinely useful to others.

I am also exploring emacs dynamic modules which was introduced in emacs 25.0 for parts of a plugin that might benefit from better performance, although I will only use them where they make sense.

I would really appreciate any suggestions or problems you have encountered that you think could be solved with a new plugin.

https://redd.it/1uqtsl3
@r_emacs

Читать полностью…

/r/emacs

My emacs config.
https://github.com/skunkdog/emacs-config/tree/main

https://redd.it/1uqqrcg
@r_emacs

Читать полностью…

/r/emacs

Geiser (Stklos) errors when sending from the REPL

Recently I decided to give scheme a try, I already knew geiser was the package for schemes, after shopping a bit I settled on stklos because it seemed simple enough, sending input to the repl works fine, but somehow pressing enter always pops this error on the minibuffer, even on a fully fresh init

This also happens when trying comint-send-input directly

I'm on a master build for Fedora

https://reddit.com/link/1uqoye0/video/87vn4numizbh1/player



https://redd.it/1uqoye0
@r_emacs

Читать полностью…

/r/emacs

elisp deno style deny by default interpreter

I was curious to hear thoughts on this as when I recently looked into it, modern emacs is already in a good place and it doesn't appear to be too much work if we use some of the scaffolding given to us. For the last for months I just thought it wasn't possible and used deno sandboxes.

A bit a background there was a discussion about this 4 months ago

And the consensus appeared to be leaving it to a hypervisor/containerisation (which I'm going to discount and focus on purely elisp solutions).

So it seemed the only solution was the ebot/joelmccracken approach which is based on rewriting elisp against an allow listing and then eval (note this was designed about 20 years ago before other options really came into play).

There seems to be an easier way so I've put together a POC and I'm interested in understanding if I've missed something.

The idea is flattening to a subset using macroexpand-all and then matching symbols that are tagged side-effect-free (grepping through the elisp codebae this seems to be a good proxy for deny by default). While it's technically slower than the elisp string rerwrite approach the performance difference seems negligible after benchmarking for a relatively concise codebase.

https://redd.it/1uqj7y8
@r_emacs

Читать полностью…

/r/emacs

Emacs for Health/fitness?

At this point I have drank, bathed and have Emacs running throw my vein. I, however, am not able to find a good way to keep my fitness and health in it. any suggestions on packages or templates you use? Parts of me thinks doing it in a table format might be best, but not sure.

https://redd.it/1uq8ogv
@r_emacs

Читать полностью…

/r/emacs

Emacs hangs randomly on new windows machine

Last week I started a new job and got a new laptop.
Unfortunately, the machine has Windows 11, and there's not much I can do about it. I can only be glad that the very restrictive corporate policy didn't forbid me from installing Emacs.
My configuration is quite simple. I use Doom Emacs. Besides org-mode, hunspell and magit, I have linters for Python and Go enabled, and really not much more.

My daily work, which currently consists mainly of taking notes and making to-do lists in org-mode, with the occasional code review, works perfectly, with no downtime or freezes. I also checked the configuration for any obvious errors, but found nothing.

Unfortunately, it turns out that Emacs freezes completely about twice a day. That is, it stops responding to keystrokes, I can't close the window with the mouse, and attempts to resize the window don't refresh its content. What's worse, it can't even be terminated from the process manager. By the way, bravo Windows, after so many years there are still problems with killing processes. The only thing that really helps is restarting the system.

Since I started paying attention to this, I've noticed that it's not related to any specific action. Once or twice it happened while writing text in an org document, once when trying to connect to a remote directory via sshx, but usually I'm not doing anything and when I switch to make a note, the program no longer responds.

How can I diagnose where the problem lies? I've tried tricks like (setq debug-on-quit t), but it doesn't help much. That is, it's so frozen that it doesn't return any logs.

P.S. For the record, I'm using Emacs 30.2 with latest Doom from git repository, installed from the installation package on Windows 11 64-bit.


https://redd.it/1uq6d6d
@r_emacs

Читать полностью…

/r/emacs

Telescope / Television style file and keyword search in emacs

Hi folks! Recently moved from zed to emacs, and I am having an absolute blast. I do however am I little confused about what is the modern way to achieve a telescope style file, keyword search in emacs. I have mostly made clankers write my config, and they seem to suck at this specific thing, so I will probably have to write it manually, or with assists. Any and all package names are welcome, thank you!

https://redd.it/1upzkcq
@r_emacs

Читать полностью…

/r/emacs

legmacs: A small terminal text editor written in and scriptable with let-go, a Clojure-dialect Lisp
https://github.com/nooga/legmacs

https://redd.it/1uptrzt
@r_emacs

Читать полностью…

/r/emacs

Vulpea sync is finally, actually async (opt-in)

Vulpea is a note-taking foundation for Emacs - org files as the source of truth, SQLite as a fast queryable cache, an API to build on. In two words: honest plumbing.

Its docs always claimed synchronisation is async. That was only true for scheduling - the actual work ran on the main thread, and saving a large org file froze Emacs for about a second per megabyte. Someone filed an issue with a 1.2MB file, and I went down the rabbit hole.

Results:

- the default path is ~2x faster with zero config changes (1MB save: 631ms -364ms)
- opt-in worker process: saving a note - even a 100MB one - blocks Emacs for about a millisecond, at any file size
- a full 10k-note database rebuild used to be one continuous 39s freeze; now the worst single stall is 48ms while you keep typing

To try the full thing:

(setq vulpea-db-async-extraction 'full)


then M-x vulpea-db-worker-diagnose tells you whether your setup actually gets it (and why not, if not).

The write-up has the whole story, including more optimisation options and the gritty parts: why the database cost was never SQLite, parsing half the file, flow control on a pipe, and three bugs I would not have believed I shipped: https://www.d12frosted.io/posts/2026-07-06-vulpea-async-sync

Code: https://github.com/d12frosted/vulpea

P.S. It stays opt-in because I still consider it experimental. Feedback is more than welcome.

https://redd.it/1upmv1q
@r_emacs

Читать полностью…

/r/emacs

File local variables not loading? - latest magit version

I suddenly started facing an issue with Magit in the last few days with the error: `(void-variable $)` and blank status buffer when opening magit, which I narrowed down to: https://github.com/magit/magit/commit/05c0b889e2f32e01d7f7d1066ad48c0f31a1c105

It feels like that the "thread$" macro didn't expand? Not sure what is the cause here, but simply accepting file local variable when opening the file and re-eval'ing the function solved the issue.

Maybe the issue is something else and my title is misleading, but wanted to just report this in case others also face this problem...

https://redd.it/1uskvid
@r_emacs

Читать полностью…

/r/emacs

Elegant Emacs
/r/u_Potential_Spend_6730/comments/1usfi0l/elegant_emacs/

https://redd.it/1usi0ng
@r_emacs

Читать полностью…

/r/emacs

In Emacs, Everything Looks Like a Service
http://yummymelon.com/devnull/in-emacs-everything-looks-like-a-service.html

https://redd.it/1usfzjh
@r_emacs

Читать полностью…

/r/emacs

Hel — Helix emulation layer for Emacs

https://redd.it/1uruwjy
@r_emacs

Читать полностью…

/r/emacs

Using a split keyboard: master Emacs bindings or go for Evil?
https://redd.it/1urp4m7
@r_emacs

Читать полностью…

/r/emacs

Easy way to use LSP in Emacs

I'm new to Emacs and I've been trying to create a simple Emacs development environment for programming. But I've hit a wall: installing the LSPs for the languages I use. In Emacs In Emacs I first tried the normal LSP, then I tried using eglot +LSP and it still didn't work.I gave up and did the same thing with NVim, and it was much easier. It just installs the LSPs by selecting the language and then the LSP I need. Is there a way to do the same thing in Emacs?


https://redd.it/1uranfs
@r_emacs

Читать полностью…

/r/emacs

your emacs features on your daily drive?

i feel that im not taking the most of emacs as i could i just use it for code, orgmode(agenda and as a notebook). and recently discover that i can use it as a email client so i gonna try it, but probably there a more that im not learning that can make emacs more fun. sooo i ask you to know other things that i can do in emacs or you use on your daily drive?

https://redd.it/1uqt7fk
@r_emacs

Читать полностью…

/r/emacs

How to search among all files in, or below, a directory

I have for a long time had the problem, that I could not easily find and open certain files. For example, the Doom emacs user files in ~/.config/emacs/.local.

Almost all emacs file searching commands do by default ignore those files. An exception is find-name-dired.

The files are ignored either because:

- The search command ignores a file or directory with name starting with . (period).

- The search command ignores files and directories matching patterns in files such as .gitignore.

The search commands usually do the actual search by calling a command line command, such as find, fd or rg. There is usually a way to configure the filtering done by the emacs search command. One can thus either change the default behavior of the command, or create alternative search commands.

The command line command fd, is the easiest to control. The fd (or fdfind) manual list two relevant command line options: -H or --hidden, and -I or --no-ignore:

- --hidden tells fd to search also directories and files with name starting with .. However, the directories and files may still be filtered by the ignore mechanism (option --no-ignore).

- --no-ignore tells fd to turn off filtering done by files such as .gitignore.

The command line command rg also has the above command line options.

For the emacs search command consult-find-fd one can modify variable consult-fd-args, by adding:

~~~

"--no-ignore --hidden"

~~~

Example:

~~~

(setq consult-fd-args

'((if (executable-find "fdfind" 'remote) "fdfind" "fd") "--color=never"

"--full-path --absolute-path" "--no-ignore --hidden --exclude .git"

(if (featurep :system 'windows) "--path-separator=/")))

~~~

For the emacs search command consult-find one can modify variable consult-find-args, to not ignore hidden files.

Example:

~~~

(setq consult-find-args

"find .")

~~~

The melpa package fzfa has lots of search commands, based on the fuzzy finder fzf:

https://github.com/junegunn/fzf

For the emacs search command fzfa-fd one can modify variable fzfa-fd-command, to not ignore hidden files.

Example:

~~~

(setq fzfa-fd-command "fd --no-ignore --hidden")

~~~

fzfa has a dependency on ivy, so ivy must be enabled, if one wants to install fzfa:

~~~

(use-package ivy)

~~~

https://redd.it/1uqppwi
@r_emacs

Читать полностью…

/r/emacs

just unbind :q

every time i exit emacs my immediate next command is to re-launch it cause there's something else i need to do in it.

https://redd.it/1uqld0h
@r_emacs

Читать полностью…

/r/emacs

Experiments: abusing margins, mode-line and header-line
https://redd.it/1uqhzo5
@r_emacs

Читать полностью…

/r/emacs

How to set a very specific key as a shortcut?

I'm new to emacs (using Doom), and I'm trying to set Compose (which is on Ctrl, set by KDE, Ctrl is on Caps) to activate god mode, but I can't find the name of all keys.

The line of code is:

(map! "(shortcut here)" #'god-local-mode).

It would be nice to use it as a hyper key and setting it as a shortcut (alone, no second key together), but KDE seemingly has set the main menu to open when you press hyper (just why).

https://redd.it/1uq77ux
@r_emacs

Читать полностью…

/r/emacs

Do any of you use vc-dir?

Just curious, I've tried vc-dir before but overall it seems like everyone has moved to magit, do people still use it?

https://redd.it/1uq210k
@r_emacs

Читать полностью…

/r/emacs

Google OKF "versus" OrgDown?
/r/orgmode/comments/1upxl5l/google_okf_versus_orgdown/

https://redd.it/1upxlut
@r_emacs

Читать полностью…

/r/emacs

HyWiki: Zero Markup Hypertext
https://www.chiply.dev/post-hyperbole-hywiki

https://redd.it/1upt5r6
@r_emacs

Читать полностью…

/r/emacs

Is there a way to automatically align/straighten all columns in every table in an org file?



https://redd.it/1upihda
@r_emacs

Читать полностью…
Subscribe to a channel