reddit / emacs

Navigate like emacs in other IDE's

SeanHaz · 2022-12-10 13:28
I find myself being slowed down a lot by using the arrow keys instead of C-F/B/N/P also not having C-A/E for start and end of lines. Is there any plugin that can provide this functionality for eclipse/intelliJ?
podtatranec · 2022-12-10 14:39
This feels like a question better asked in the subteddit dedicated to one of those other editors and not emacs..
SeanHaz · 2022-12-10 14:41
I thought Emacs users would be the most likely to have looked into this. Since the reason I am looking into it is my familiarity with the Emacs method of navigation. But perhaps you are right.
alef-bet · 2022-12-10 15:03
https://googlethatforyou.com?q=intellij%20emacs%20bindings
colemaker360 · 2022-12-10 15:10
The likely reason you haven’t heard much discussion about this is a lot of Emacs users don’t use Windows. And, if you are in the Apple ecosystem, Macs already let you use a subset of Emacs keybindings by default in pretty much every place you type, so for many of us this just isn’t an issue. Our beloved core Emacs keybindings work nearly everywhere we type already. C-a/C-e/etc all work in Notes/Reminders/Keynote/etc. Even in non-safari browsers like Brave, these bindings work in text boxes and even the URL bar. The sole exception to this I’ve found to this is when I’m using MS Office apps for Mac - Microsoft for whatever reason fails to support this in Office, so you can’t hit C-a in Outlook and have it go to the start of a line. Oddly, other MS apps for Macs like Teams and VSCode do support it - probably due to them being Electron apps tied into default browser behavior behind the scenes.
SeanHaz · 2022-12-10 15:14
That's unfortunate, I used to use Linux for everything but the product I'm currently working on is for windows so I'm forced to use it for a while. Trying to get a setup on windows I'm happy with but I'm running into a lot of issues.
SeanHaz · 2022-12-10 15:15
I tried that but it doesn't accomplish what I wanted (the eclipse equivalent I didn't try intelij yet). It gives some Emacs bindings but not those used for navigating.
noobCodeKid · 2022-12-10 16:57
How do you define navigation? From my experience the intellij emacs mode provides the stand C-f C-b and the rest of the cursor navigation.
maxitheadrom · 2022-12-10 17:12
I am in the same boat as a reluctant windows user for work. I use Autohotkey with custom and easily modified setup scripts. You can then change caps lock to control, make a hyper key out of tab and Emacs away with whatever you like. Lots of “steal shamelessly” setups from other users.
SeanHaz · 2022-12-10 18:01
Guess I'll try that on intellij then, I tried Emacs mode in eclipse and it didn't have Emacs cursor navigation, I assumed the Emacs mode in other IDE's would perform the same function, it seems that assumption was incorrect.
Cockroach-777 · 2022-12-10 18:02
I had recently installed emacs after listening to the interview of Guido Van Rossum. May I know if there are there any referral videos upon usage of emacs for python using terminal for Linux/MacOs?
00-11 · 2022-12-10 18:08
Doesn't seem to be a question about Emacs... Maybe ask the Eclipse/IntelliJ folks about such a plugin?
ifuckinlovegluten · 2022-12-10 18:37
What video was this? I thought he said he used VSCode on Lex Fridman’s podcast. I also saw that Lex tweeted about leaving emacs for VSCode
systematico · 2022-12-10 18:44
There is a VS Code plug-in that emulates the most important key bindings. It doesn't work perfectly, but it does the job for me. Let me know if you can't find it.
simendsjo · 2022-12-10 18:49
The best Windows setup is trying to avoid Windows in this scenario in my experience. WSL2 actually works fine, and with the new wslg, you're able to run Wayland and X11 apps without extra software. It doesn't integrate perfectly, and it's not 100% stable, but I find it better than using only Windows. Remember to install wslu to better integrate with the Windows host. I've installed Guix System in WSL2, and I'm using Emacs and other software there.
maufdez · 2022-12-10 19:06
If you are on windows you can try [e wow](https://github.com/zk-phi/ewow)
recaph · 2022-12-10 21:55
I use Emacs keybindings in Rider (IntelliJ based). They are great! One of my biggest gripes are however that switching files (i.e. “switching buffers“) doesn’t work as expected. But for the most part, navigating within a file works and the addition of M-x is sanely bound makes it a nice experience. So give it a try!
SeanHaz · 2022-12-10 22:51
Thanks for the advice, will likely switch to intellij, sounds like the best transition from emacs
SeanHaz · 2022-12-10 22:52
This is exactly the kind of thing I was looking for thanks. I will try it as soon as I'm back on my pc.
SeanHaz · 2022-12-10 22:54
Someone else suggested the same, will look into it when I'm back on pc. Thanks for the advice.
Horrih · 2022-12-10 23:05
On windows, i use microsoft powertoys to rebind keys (globally or for specific apps) i.e you can bind C-n to down arrow, C-a to the home key of your keyboard, etc, and make it work for your browser, intelliji IDE's etc all in one place. It's actually pretty easy to get most movement work like emacs for most apps
nivpgir · 2022-12-10 23:51
I used to be in that place too, I got emacs working on windows (without WSL and even with native comp) using [scoop](https://scoop.sh/) and git bash. It wasn't substantially slower for most things, and ridiculously slow for a few things, but it was good enough to be usable for the things I didnt get from the ide (magit, ediffing and inspecting various text formats). WSL probably has and smoother experience, but I had issues with it when trying to access drives outside of the linux VM and decided to use something closer to actual windows. Scoop was the real gamechanger for me, you can find and use many unixy tools with it, I think it's worth a shot.
Cockroach-777 · 2022-12-11 04:44
I think it’s the same video. As I am already using PyCharm IDE, I thought of getting started with Emacs too, rather than migrating to VScode IDE
ianjs · 2022-12-11 10:33
As an aside, the Emacs keymap in VSCode is pretty comprehensive. File Save, Undo, PgUp, PgDn and most other keys work as expected.
mdrf23 · 2022-12-12 06:03
For windows I use [xkeymacs](https://github.com/fujieda/xkeymacs)