FrozenOnPluto

joined 1 year ago
[–] FrozenOnPluto@alien.top 1 points 11 months ago (1 children)

Many of the 'defaut' (in my head) bindings dont' work in python-ts-mode (such as C-c >), but perhaps my config is blowing something up. Hmm .. I'll dig in more, thanks!

[–] FrozenOnPluto@alien.top 1 points 11 months ago (3 children)

Aside - is there any good docs about _using_ treesitter mode? Setting it up was covered in a few great notes and guides, and took only a couple minutes.

ex: python-mode has a keybinsd that shifts current line/region right or left a hop; super handy! I didnt' see any obvious keybind for that in python-ts-mode .. I expected to have a lot of like-for-like in the new mode, but I guess thats not quite right. Its not 'a new python mode', its 'treesit modes', so have to get used to presumably new keybinds for treesit-modes .. and maybe they're even consistent across languages (that'd be something!) .. alas, I didn't find out what that key was, so, sort of a shame.

Any handy list of keybinds that are super useful across the treesit modes?

[–] FrozenOnPluto@alien.top 1 points 11 months ago (1 children)

I keep waiting for him to update to 29.1-ish, and then I'll buy an official copy; Thanks Mickey, you're a huge asset to the community!

[–] FrozenOnPluto@alien.top 1 points 1 year ago

hey thats really neat!

[–] FrozenOnPluto@alien.top 1 points 1 year ago

Bookmarks+?

[–] FrozenOnPluto@alien.top 1 points 1 year ago (1 children)

I dunno, sounds like a one liner in cli .. unless you need to do this many times in the future or just want to force it into Emacs for fun (which is okay :), strikes me as a 10s thing to do on cli if you’rr a Mac or Unix-like user

cd /to/top mv */*mov .

Repeat for other file type.

That assumes they’re only one level deep

Another one liner ..

find /top -name “*mov” -exec “mv {} /top” ;

Be careful as just tapping out on phone but you get the idea

[–] FrozenOnPluto@alien.top 1 points 1 year ago (1 children)

Emacs is king of undo. Theres a number of ways but you can bsck up the undo chain a step or steps at a time. Ie if you’ve done 20 changes you can just keep going back with a keystroke.

There is also undo-tree package so you can visually see what state your buffer has been in over time and then just go pick the state you want.

[–] FrozenOnPluto@alien.top 1 points 1 year ago

More info is needed, really.

Yes you coudl ssh there and use the local Emacs (v23 apparently.)

If ssh is supported like that, then local to you Emacs (v 29 or whatever) over Tramp/ssh should work fine as well (the F5 load balancer deep packet inspection wouldn't see the different; Tramp is just ssh'ing and running commands same as a user would.)

You could also try sshfs (map a local filesystem to a remote mount over ssh) but in my experience thats really slow.

You could run an Emacs on the remote, with X11 projection to your laptop, over ssh tunnel, but that'd likely be slow, and Emacs 23 is ancient :)

.. so a local to you Emacs 29 with Tramp over ssh to the remote should likely work, but it depends on some other things; they _could_ block it, but not likely, assuming you can ssh there yourself.

Now, if theres a jumpserver or something, that could be a problem (2FA type challenges in the middle) but multi-hop ssh tramp could do it..

Another question is .. why the heck are they stuck at Emacs 23, which is probably 10+ years old. Thats a security risk right there they should be happy to remedy :)

[–] FrozenOnPluto@alien.top 1 points 1 year ago

Is it perhaps the wrong TERM setting, so you're using say xterm TERM but its actually being run in text with ANSI mode or something? Which ssh client are you using?

Goodness; that version of Emacs was released in 2013, a full 10 years ago :O

Can you not get that updated to something remotely more recent? :) I'm surprised you don't run into a lot of issues, if you're using remotely modern packages.

[–] FrozenOnPluto@alien.top 1 points 1 year ago

If you run a remote LSP and connect to it from lsp-mode, can the file saves be sent through that? Or does thr LSP only do file checks and refactors and such, not offer raw file get/put?

[–] FrozenOnPluto@alien.top 1 points 1 year ago

Wow quite a journey! I learnt Emacs decades ago so am wired to the usual key combinations, but I feel like devil-mode will be useful as I age, or if injuries make it harder to use two hands at once.

[–] FrozenOnPluto@alien.top 1 points 1 year ago

As its brand new, I'm ignoring it for now; when I don't have another more mature ("the devil you know") mode, I'll use the *-ts-mode and twiddle with it, but otherwise I'm mostly sticking to the current ones. One of those bleeding edge things - let those on the edge do the bleeding ;)

view more: next ›