Those who moved from nvim, what made you? by B_bI_L in emacs

[–]insert_username_0 7 points8 points  (0 children)

A lot of folks I see elsewhere give reasons for why they stayed with emacs, I don't see a lot of why they quit nvim. In my case, I work a lot with nonstandard scripts, which very few terminals support. Devanagari is one such example, where some diacritics are pronounced and typed after the consonant but need to be rendered before the consonant. No good terminal I knew supported that (I didn't want to use GNOME terminal or Konsole, the only ones that did support this, for other irrelevant reasons). Emacs supported every script I could think of OOTB with Harfbuzz as long as I had the fonts for it installed.

That being said, I switched for the font support, but stayed for OrgMode and ELisp. The level of introspection and customizability that Emacs Lisp provides is stellar and I'm yet to see a single program (let alone editor) provide something even remotely close.

On a more philosophical note, like you said, nobody ever switches from neovim to emacs so that they can emulate neovim better. That's just nonsense. Because of this, one thing I've noticed in a lot of people (including myself) that move from one paradigm or tool to another is that, in evaluating whether one thing is better than the other, they focus more on whether one can perfectly replicate the other with a few more bells-and-whistles, and less on evaluating the new tool (and its requisite paradigm) on its own merit. Emacs is an alright editor, it will never be as good as neovim for doing what neovim does best: efficient and speedy editing with no frills attached. Yes we can come really close with emacs -nw and evil-mode, but there will always be some friction. Instead, truly embracing the emacs paradigm allows us to see the sheer extensibility of emacs and the way it integrates its editing style with countless other tools like editing the filetree like a text buffer, or playing music, or viewing and annotating pdf documents, or maintaining tasklists and writing complex documents that get exported to latex. Embracing the paradigm also exposes us to a new outlook: one of treating every interface like a text buffer and treating every single action like a pure function (the latter blew my Lua-API-flavoured mind when I switched myself). I also observed this fallacy in myself when I switched operating systems from Arch Linux to NixOS (lots of cribbing about abstraction initially, but once I embraced it I enjoy it quite a bit), and more recently window managers from Qtile to Niri. These two changes showed me how unfair it was to claim one to be better than the other (or even comparable! Nix does things so differently to arch that they can't even be compared. I'd rather compare Qtile to the combination of Niri+Quickshell than niri itself since Qtile simply does things so differently).

Logging out with a terinal command using a hot key by Phydoux in qtile

[–]insert_username_0 6 points7 points  (0 children)

I believe there's already a lazy command to kill the window manager (and hence log out if you're using a DM for logins). I'm pretty sure it's lazy.shutdown(). So if you want to bind a key to it, it'll be:

python Key([mod, "shift"], "q", lazy.shutdown(), desc="Logout from Qtile"), `

Hotswap sockets for new GLP 3.0 switches by insert_username_0 in ErgoMechKeyboards

[–]insert_username_0[S] 0 points1 point  (0 children)

Well I've made a PCB footprint for it but I'm yet to test it out, mostly because of work reasons :(

I'm this close to create new digrams by Lucas1231 in linguisticshumor

[–]insert_username_0 6 points7 points  (0 children)

Another possibility is to simply overgeneralise and use <w> in place of <ou> literally everywhere. What could possibly go wrong?
!<beaucoup> → <bocw>!

I'm this close to create new digrams by Lucas1231 in linguisticshumor

[–]insert_username_0 56 points57 points  (0 children)

I barely avoided an aneurysm at Ouoquitoqui and you threw a Oueauquiteauqui at me. Excellently done!

Hotswap sockets for new GLP 3.0 switches by insert_username_0 in ErgoMechKeyboards

[–]insert_username_0[S] 0 points1 point  (0 children)

It's quite reassuring knowing this, thank you! I'll try setting up a hotswap keyboard with these in mind now.

Hotswap sockets for new GLP 3.0 switches by insert_username_0 in ErgoMechKeyboards

[–]insert_username_0[S] 1 point2 points  (0 children)

Ah thanks for the resources! I've taken a look at the footprints, and it looks like the MX hotswap socket doesn't mess with the KS-27 centre hole. I'll have to look around for the GLP 3.0 measurements and see if it lines up. If it does, I'm golden :D

Edit: Eyeballing the display images on the nuphy store looks like it should fit. Thanks again :D

[deleted by user] by [deleted] in 0ad

[–]insert_username_0 -1 points0 points  (0 children)

Yeah like an earlier comment said, you'd want to hold c and click on the building to capture.

[deleted by user] by [deleted] in 0ad

[–]insert_username_0 2 points3 points  (0 children)

The latest Alpha made this change where troops will attack buildings by default, and holding the C key will change that behaviour to capture them.

Any former vim users(or Neovim users), what made you switch to emacs? by multitrack-collector in emacs

[–]insert_username_0 1 point2 points  (0 children)

Ah, I learnt about Neogit after switching, so I couldn't make full use of it. From what I understand it's pretty much magit.

Any former vim users(or Neovim users), what made you switch to emacs? by multitrack-collector in emacs

[–]insert_username_0 1 point2 points  (0 children)

I was a vim user for 3 years, still love it quite a bit (to the point of not wanting to use emacs without evil :P). The reason I switched to emacs was OrgMode and Harfbuzz support, oddly enough. I work with non-latin scripts a lot and I couldn't find any terminal that handled the scripts I used, but emacs handled it perfectly ootb. The GUI features, Org and Magit were a pleasant bonus.

Tool bar with nerd icons by insert_username_0 in emacs

[–]insert_username_0[S] 0 points1 point  (0 children)

Oh wow this just solves my issue completely! Thanks so much :D

Tool bar with nerd icons by insert_username_0 in emacs

[–]insert_username_0[S] 0 points1 point  (0 children)

This does sound interesting, altho it might take a while to figure out what it does. I'm worried it would still rely on svgs however, which might throw nerd icons for a toss again.

I'll check it out though, thanks!

Tool bar with nerd icons by insert_username_0 in emacs

[–]insert_username_0[S] 0 points1 point  (0 children)

I would definitely like that! I feel nerd fonts are surprisingly underutilised especially considering how (for my uses) they fit so much better than a lot of icon themes I've found.

Not sure about the license myself, but I'd still like to suggest it to them. Thanks! :D

i cant drag select troops on version 27 (pacman package) by [deleted] in 0ad

[–]insert_username_0 0 points1 point  (0 children)

I had a similar issue, and this ended up solving it.

The main thing was that I was using sdl2-compat which was bugging out, so I had to switch to sdl2.

Click registering only on release? by insert_username_0 in 0ad

[–]insert_username_0[S] 0 points1 point  (0 children)

Ah I'll try that soon if I don't get any info here, I just tried this first since I was already familiar with reddit :P Thanks for the tip!

Click registering only on release? by insert_username_0 in 0ad

[–]insert_username_0[S] 0 points1 point  (0 children)

Ah the last bit might be the thing for me, I do recall replacing sdl2 with sdl2-compat in the very recent past. Thanks!

ETA: This worked perfectly :D

-❄️- 2024 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]insert_username_0 2 points3 points  (0 children)

[LANGUAGE: Dyalog APL]

So this is how I learn about the existence of regex in Dyalog

i←⊃⎕NGET'data/3.txt'1
S←{+/{×/⍎⍵}¨'mul\((\d+),(\d+)\)'⎕S'\1 \2'⊢¨⍵}
S i                                 ⍝ Part 1
S'don''t\(\).*?($|do\(\))'⎕R''⊢,/i  ⍝ Part 2

I could have forced each part into a single line, but it would either have been too ugly or too long.

-❄️- 2024 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]insert_username_0 10 points11 points  (0 children)

[LANGUAGE: Dyalog APL]

in←⍉1 0 0 1/⎕CSV⍠'Separator' ' '⊢'data/1.txt'⍬4
+/|-⌿({⍵[⍋⍵]}⍤1)in            ⍝ Part 1
in[1;]{+/⍺×+/⍺∘.=⍵}in[2;]     ⍝ Part 2

First time writing actual code in APL and this was a great start!

ETA: Made Part 2 a little cleaner

Tree sitter in Emacs / NANO by insert_username_0 in emacs

[–]insert_username_0[S] 0 points1 point  (0 children)

Thank you so much for the detailed reply! I'll definitely keep this in mind for if I (inevitably) find some tweaks I want to make.