Emacs everywhere rewrite?

I used Emacs Everywhere on KDE and it worked well. However, since I
moved to Sway, it has been a struggle to get it working. I eventually
gave up on trying to make it work and wrote this make shift version in
my configuration instead.

My makeshift version currently types the content into the window
below. It seems to work well on Sway, since it automatically switches
focus to the correct text area after the frame is deleted. Emacs
Everywhere copies the text into the clipboard and then pastes it into
the text area; I think it also manually switches focus.

I was wondering if I should create a separate package for this,
exclusive to Sway or potentially other Wayland compositors, provided
it doesn’t require too much work.

I was looking forward for this PR; Dotool support by msin32 · Pull Request #92 · tecosaur/emacs-everywhere · GitHub

I use niri as wm. Maybe with few tweaks we can get it working.

But previously to get similar functionality, I was using a custom keybind in WM to open emacsclient on some tmp/scratch file. Then with save and exit, wtype or dotool would insert those content into the browser or wherever focus is.

But still i dont find usecase for it, as I always have emacs window open. Manually i just do copy and paste if I really need emacs editing.

I use niri as wm. Maybe with few tweaks we can get it working.

I think the current code will just work™.

But previously to get similar functionality, I was using a custom
keybind in WM to open emacsclient on some tmp/scratch file. Then with
save and exit, wtype or dotool would insert those content into the
browser or wherever focus is.

I never save, I directly ask wtype to write the contents of the buffer
into whatever the focus is. I do not like the copy paste nature of
emacs-everywhere, because it is not universal (many programs have
different keybindings for copy-paste).

But still i dont find usecase for it, as I always have emacs window
open. Manually i just do copy and paste if I really need emacs
editing.

Same here, but emacs-everywhere is just more convenient. I can say
that after using my make-shift version for a while.

1 Like