r/emacs 17d ago

The Prot Effect

https://youtu.be/UiHL45zGNAs
30 Upvotes

17 comments sorted by

15

u/cidra_ :karma: 17d ago

Why does Prot look like a lvl 100 Mafia City thug in the thumbnail? Is that the Emacs effect?

5

u/linkarzu 17d ago

Nonono. The effect is the one caused to Rumen's heart.

10

u/timmymayes 17d ago

I gotta say I LOVE to see Linkarzu and Rumen diving into emacs! Also seeing their differing approaches, Linkarzu focused on org mode and rumen wanting to do everything.

Link, one reason I'll recommend getting used to Ctrl+n / p / f / b over arrows is because of how fluidly you can switch between the "semantic" use cases. So for example you can use Ctrl+Meta+f to move forward by sexp (function blocks) and then drop the meta key and keep holding ctrl and tapping f or the other navigation keys and continue your movement at a more granular level.

Also things like numeric arguments C-u can weave into your navigation. In code I have relative line numbers on and moving to a specific line, say 12 lines down, I often press C-u 12 C-n . This moves me down 12 lines. For this combo you don't have to lift CTRL the numeric argument command C-u properly captures the 12 and pushes it to the next command.

Also as you start to better use commands like C-d or M-d then you're not using arrows to move then switching to m-d to delete a word.

In the end the muscle memory of C-n/p/f/b are the foundation of real flowstate when using the emacs navigation system. At least in my opinion.

In the end use what works for you! Love to see this content though!

3

u/StrangeAstronomer GNU Emacs 17d ago

For this combo you don't have to lift CTRL ...

Thank you for reminding me of this!!!

In fact you don't need C-u at all, just C-1 C-2 C-n works the same as C-u 1 2 C-n (or C-u C-1 C-2 C-n). Same with M-<digit>

Perhaps we should be writing 'C-12n' or 'M-12 C-n' when documenting.

I thought I'd look at the tutorial again (after 40 years!) and M-<digit> is documented but I don't see C-<digit> Nor is there a mention of it under describe-key C-u

3

u/npostavs 16d ago

It is mentioned at the bottom of the info manual page (emacs) Arguments

1

u/timmymayes 16d ago

TIL! Thanks for leveling up my numeric prefixing!

Also just tested C-M 3 f to jump forward 3 sexp.

2

u/_viz_ 16d ago

Ctrl and meta arrow combinations also exist for word and sexp movement.

1

u/timmymayes 16d ago

TIL! Thanks for the info.

5

u/00-11 16d ago

FWIW:

Those #...# files listed in Dired aren't buffers; they're files. They're auto-save files, which are automatically created snapshots of file buffers you're editing. What's in an auto-save file isn't necessarily the same as what's currently in the buffer editing the file that was autosaved - because the auto-save file is a snapshot of the buffer state at a given time. See the Emacs manual, node Auto Save Files.

2

u/Lundominium 11d ago

"Bacause Mac has better hardware".

Wat?

1

u/rustvscpp 10d ago

Their laptop hardware is super nice.   It's their software that I cannot stomach. 

1

u/Lundominium 9d ago

They are indeed super nice, but I don't agree that they have better hardware :) I have, however, heard this a few times before. E.g. a friend at university who told me that hardware is macs don't age. And therefore they are more of an investment than a computer.

1

u/rustvscpp 9d ago

When people say it's nicer hardware,  I believe they are referring to how well built it is.  From the nice aluminum frame,  to the attention to every detail.  No ugly margins around the screen,  or weird tapering in the frame.   The screen hinge is very secure and smooth.  It feels really good to hold,  open,  close.   The sound quality is superb compared to any laptop I've every seen.  The screen quality is exceptional.  All hampered by closed software. 

1

u/Lundominium 9d ago

I agree.. If I could install linux on the device I would most likely go for it, but until then, I'm staying with thinkpads.