Tsoding: "I hate how all programming content on UA-cam nowadays is just 'Hey! Look at my cool vim config'... Also, here's a 2h stream about my emacs config."
To be fair, in one video he tells you "c is horrible". A month later: "c is the GOAT". And so on. He already said that he rant a lot, and you shouldn't take him so serious.
To me the best example of "lost in time" knowledge, is the first line of William Gibson's Neuromancer 'The sky above the port was the color of television, tuned to a dead channel. '
I just love Tsoding content. 1:40 in and I'm already nodding my head non-stop. His experience with Emacs is exactly what I had on (vanilla) Vim - from "the only real editor" part thru the "I used to have a lot of IDE-like features" and the "I don't need that shite anymore". Which now makes me feel like I need to reset my massive vimrc folder and start from scratch.
Fido is a legacy thin wrapper over the builtin Icomplete mode. Instead of Fido, Smex, and all that ancient stuff, just run 'icomplete-mode'. That will give you M-x and more, out of the box. The same applies to your package installation helpers and similar. It is all built-in now man.
2 months ago I finally started using emacs as my daily editor, was kinda hard at the start, getting used to the key combinations and such. I can now proudly say, that I suck less! Also, thanks for your config, did a little cherry picking of some stuff I wanted as I went along.
Honestly, I like how much of emacs can be configured without writing your own elisp - even though very few non-technical people will ever use it, it means that a non-technical person *can* use it if they want. Obviously to get the best out of it, you need to learn the keyboard shortcuts (i.e. learn to use vim and install evil mode /s), but with a minimal amount of configuration via the gui, anybody can learn to use it.
Grats on the new machine! Also, to anyone who hasn't done - try one of the Lisps! It's a lot more fun to write than it actually looks. Edit: lol don't think I've ever seen avyone PR-ing someone's dotfile repo before Edit2 re emacs modifying .emacs - If I'm starting from scratch I usually do all my customize-mode changes at once, and then manually set those exact things in .emacs (referencing what needs setting is easy since emacs has just dumped everything right there). Once they're all set you can nuke the ;;custom-set-variables section. emacs won't rewrite it unless you change something else from a customize-mode. Not using .emacs for user-code is much easier, though, but I've never claimed to not be stupid.
Really cool stream idea! Btw I really liked your simple i3 setup, do you plan on using xfce from now on or will you go back to i3 once you have everything setup on your new Laptop?
I'm not sure actually. There are some things I like in xfce, there are some things I like in i3. It would be cool to use them together. I need to research if it's possible to just replace the usual xfce's wm with i3.
@@TsodingDaily maybe switch to wayland with sway. In my experience there's no working only telegram notifications (which is replaceable by mako notification daemon).
Great video Tsoding! 1:59:40 If you don't get money neither from donations or subs; how do you make money from the stream?? PS: You made my revise my emacs config. Glad you did Have a nice week!
1:55:12 In neovim the way I duplicate lines is by getting the current column and then after p navigating to the column using |. I have this bound to just one keystroke so vim is still winning.
One more thing why people may use emacs/vim and not IDEs or like VScode and stuff. Is that you may work for a company, that is not upgrading its linux for 10 years and vscode will just not support the old linux libraries mainly(glibc), but emacs does, because it is perfect from the start.
1:49:00 This doesn't answer the specific question at hand but Emacs has `kill-whole-line` which is bound to `C-S-BS` by default. I wish Emacs had a way to merely copy a whole line without doing anything else (deleting, pasting on the next line etc).
The default bindings that do the duplicate the way you want would be "yy p". In the same way that you wrote a function and a binding to it, you can just write a new binding or do a macro that can do that sequence in 1 keystroke.
I'm 5:38 in, and I don't understand. has emacs always been a GUI app with removed menu and top bar? or has zozin been using a terminal based version of emacs before?
Re: compilation mode I sit on the fence between emacs and neovim. My config for both editors is nearly identical because I use Evil Mode. What you said about compilation mode is spot on. It just works, and it does exactly the right thing. The vim equivalent is good, but not close to compilation mode in emacs.
Just a heads up the h264 encoder from AMD is absolute garbage, quicksync on your old laptop might even be about as good or a little better. Their h265 is “ok” though.
I always thought he used the default x264 encoder(an h264 encoder that is CPU-based) at 2500Kbps, why ? Because every time there is motion in his video the video quality degrades really quickly and when motion decreases, the quality is going up, 2500Kbps isn't enough for 1080p 30fps in H264... Even with the max that Twitch allows(6000Kbps) it's not that good. And x264 is really intensive for old CPUs, my Ryzen 7 7840HS can record a 1080p 60fps on OBS with x264 at 10Mbps(10000Kbps) without degrading the performance but CPU usage is for sure higher. Also Twitch is apparently rolling out AV1 which is a way more efficient codec compared to H264, at 6Mbps you can have a pretty good video quality at 1080p 30fps and even 60fps.
@@YannBOYERDev Your 7840HS can also do AV1 (iGPU) but the hardware design is bugged and will output 1920x1082, the quality is good though, still not nearly as good as Nvidia's AV1 (it's basically as good as CPU medium h265).
For the question of copying the current line and pasting it while having your cursor on the same character in vim: `:t.` does this, `:t-1` will paste it above. (You can also add a range before t to copy more lines ;) )
To duplicate a line and keep cursor at the same column, in Neovim you can do :t. , but it still dropping cursor to the beginning of the line in Vim for some reason
the only thing I need an IDE for is pretty much just syntax highlighting and like code suggestions or whatever you call that feature which tells you what methods or functions are available for a given object, everything else I do from the command line
for cm I think it'll be better to just show position in the file through less, for example, or just do print-around with one column being error output and second column being actual print-around.
Nice! I also bought a new laptop, but I configured my Emacs the other day. I also stop adding so much into config file. And instead programming some Elips functions myself, the way Emacs should be used.
i used vi/vim for years but when i tried emacs ill never go back. i've been using only emacs now i hate the vim input interrupt, you need to press insert always to input something emacs just works, and you can customize any way you want, shortcuts are more friendly
Typing the relative line number and then j or k is nicer than C-u, relative line number, then C-p or C-n. But, I do dislike how vim has multiple ways to do the same things. a, i, r, c, s, x, d, ... Even though vim might be more efficient. I wonder if anything is gained after choosing between several similar options.
@@iMagUdspEllrVim by default make use of mnemonics to do stuff. Some keys might share the same function when pressed alone, but when combined with another key they yield different results.
@eeriemyxi a and i are an example of compensating for vims modal nature. If you're off by one, you can compensate for that with another key and extra cognitive overhead when you could just press C-f or type. I have a custom keyboard that helps one avoid more of the emacs-pinky issues. But, the numbers say that evil mode is more efficient. I just don't know how to quantify the extra cognitive overhead and it is a one or another thing because evil mode is only potentially more efficient if you chronically remain in normal mode. If you chronically remain in insert mode emacs commands are more efficient. I am kind of disappointed that new IDEs coming online just mimicked vim and kakoune. I think I'll make one that mimics emacs and kakoune.
@@iMagUdspEllrexcept its not "5 j" vs "C-u 5 C-n", it's "esc 5 j i" vs "C-u 5 C-n" (or "C-(n n n n n)") well I guess that's assuming you spend most of your time in insert mode which… I personally use text editors for writing text, but maybe I'm in the minority here
My time zone doesn’t line up super often for twitch (I’m branchwag on there lol) but congrats on the new computer :D! Never tried void myself - might have to give it a shot
tsoding bought new laptop before gta6
hell nah
I should learn emacs before it drops too
if he wasn't a streamer he would have probably moved to MacOS by now, but instead he has to keep up the l33t h4cker persona
@@mnk4allcaps I am learning emacs, making a game engine and getting better at C before it drops. By the time gta 6 drops I will be a senior dev
I'm 55 seconds in and Tsoding is starting distro wars and text editor wars already.
🤣
Hahaha this is so funny. That's why I love his videos (+ the excellent tech content of course).
Tsoding: "I hate how all programming content on UA-cam nowadays is just 'Hey! Look at my cool vim config'... Also, here's a 2h stream about my emacs config."
Two wings of the same bird vibes. 😅
The man got a new laptop after 15 years of coding on a laptop that would make anyone pull their hair out. He earned the right :D
To be fair, in one video he tells you "c is horrible". A month later: "c is the GOAT". And so on. He already said that he rant a lot, and you shouldn't take him so serious.
Also tsoding "Programming shuld be fun" immediately starts bashing anyone not using the shit he likes
Don't take anyone too seriously as if a gospel comes out of their mouth
Vim users are not invited!
OG viewer detected
damn, installing emacs right away
RAWR! HISS!! SNARL!!! This is Heresy >:U
Damn.
You don't need an OS running in an OS 😂
New laptop, new distro
Uses Void
Based
To me the best example of "lost in time" knowledge, is the first line of William Gibson's Neuromancer 'The sky above the port was the color of television, tuned to a dead channel. '
TSODING GOT A NEW PC LETSS GOOOOO
where?
New laptop? No need to write in C anymore because your RAM can handle the modern web devs crap 😂
I just love Tsoding content. 1:40 in and I'm already nodding my head non-stop. His experience with Emacs is exactly what I had on (vanilla) Vim - from "the only real editor" part thru the "I used to have a lot of IDE-like features" and the "I don't need that shite anymore". Which now makes me feel like I need to reset my massive vimrc folder and start from scratch.
Fido is a legacy thin wrapper over the builtin Icomplete mode. Instead of Fido, Smex, and all that ancient stuff, just run 'icomplete-mode'. That will give you M-x and more, out of the box. The same applies to your package installation helpers and similar. It is all built-in now man.
2 months ago I finally started using emacs as my daily editor, was kinda hard at the start, getting used to the key combinations and such. I can now proudly say, that I suck less!
Also, thanks for your config, did a little cherry picking of some stuff I wanted as I went along.
Great video (I use neovim btw)
11:13 when will you release this on Spotify?
0:28 how dare you use a different package manager than me. I will not stand for this.
Tsodiing is the reason why I'm trying to use emacs vanila keybindings and minimal configuration. Your workflow is amazing!
emacs 28 comes with fido-mode and fido-vertical-mode. so you no longer need smex and ido.
tea temperature is gone, oh no
Even the porn folder
and porn folder size too
Porn folder size as well 😢
4:16 Emacs lips 🗿
A new laptop that is crazy.
Honestly, I like how much of emacs can be configured without writing your own elisp - even though very few non-technical people will ever use it, it means that a non-technical person *can* use it if they want. Obviously to get the best out of it, you need to learn the keyboard shortcuts (i.e. learn to use vim and install evil mode /s), but with a minimal amount of configuration via the gui, anybody can learn to use it.
“Welcome to another recreational programming stream witha mister sausage”
He didn't say that. XD
He said"witha mister zozin" or tsoding if you prefer it that way.
@@YannBOYERDev Issa MISTER SAUSASGE
so, should I call you mista?
Meesta sausage!
Tsoding: "Serious people don't need VS code"
Me: 😢
51:04 it does matter. Vim can open a 100gig file in no time.
Emacs dies even thinking about it.
IIRC even vim doesn't handle huge single-line files very well (like data dumps etc), any go to editor for that?
@@azergante8268 but, why, this is 1-2 rows is I develop my text editor?
@@azergante8268 python
Last time I read a 100gig file, I died, too. :( But admittedly, there is always joe if you need it.
@@azergante8268 EmEditor is the go to for that
text editors are like programming languages: they all suck
Unless you dedicate half your life to write your own.
xu do tavla fo la lojban
@@krux02 Don't discourage me like that.
Imagine using Emacs in 2024. This was brought to you by the Neovim gang
For a sec I thought the mofo moved to windows 😳
Just as everyone else is moving away from windows he moves in.... it would be a boss move!
He finally switched to Void Linux!
Grats on the new machine!
Also, to anyone who hasn't done - try one of the Lisps! It's a lot more fun to write than it actually looks.
Edit: lol don't think I've ever seen avyone PR-ing someone's dotfile repo before
Edit2 re emacs modifying .emacs - If I'm starting from scratch I usually do all my customize-mode changes at once, and then manually set those exact things in .emacs (referencing what needs setting is easy since emacs has just dumped everything right there). Once they're all set you can nuke the ;;custom-set-variables section. emacs won't rewrite it unless you change something else from a customize-mode. Not using .emacs for user-code is much easier, though, but I've never claimed to not be stupid.
29:15 excuse me, how did you swap "display" and "global" so quickly? (asking for a friend)
M-t (Alt+T), which runs transpose-words
@@ProjectV95 learned, a new thing today. stay azozin, thx
@@QQ-gn7tc No problem! If I recall correctly, I actually learnt the fact of Mr Tsoding himself, in one of his past stream VODs
Really cool stream idea! Btw I really liked your simple i3 setup, do you plan on using xfce from now on or will you go back to i3 once you have everything setup on your new Laptop?
I'm not sure actually. There are some things I like in xfce, there are some things I like in i3. It would be cool to use them together. I need to research if it's possible to just replace the usual xfce's wm with i3.
@@TsodingDaily maybe switch to wayland with sway. In my experience there's no working only telegram notifications (which is replaceable by mako notification daemon).
@@TsodingDailyuse dwm
@@TsodingDaily you can use most of xfce (it's bars (with tray btw) and applications) with i3 as window manager.
@@TsodingDaily I think it’s actually possible. I have seen some nice articles on it. If you do decide to do that please make a video on it.
14:20 column number mode is for the column number displayed in your modeline (4, 31) the 31 is the column number. Already enabled it seems.
Feels like an updated version of your old emacs setup video. Got me to try out emacs and play with it for a bit
You sir, are the king of thumbnails.
actually happy that you got a machine so old anymore, congrats!
I need to know, do you ever use evil mode?
Congrats to your new Laptop! Happy for you! :D (...coming from a die-hard vim user.. ;)
column-number-mode shows your cursors horizontal position in the bottom bar
This is crazy, I checked out your old Emacs configuration video again just a few hours ago.
"my text editor doesn't know that your text editor exists"
Congratulations on the new laptoppp
Great video Tsoding!
1:59:40 If you don't get money neither from donations or subs; how do you make money from the stream??
PS: You made my revise my emacs config. Glad you did
Have a nice week!
1:55:12 In neovim the way I duplicate lines is by getting the current column and then after p navigating to the column using |. I have this bound to just one keystroke so vim is still winning.
Can as a beginner follow what he did on my laptop? Or I’m asking to get lost
So relatable. Compilation is the main thing keeping me on bloated Emacs instead of modern NeoVim.
impressed by the shadow of the peng, real art
Hayırlı olsun tsoding abime
One more thing why people may use emacs/vim and not IDEs or like VScode and stuff. Is that you may work for a company, that is not upgrading its linux for 10 years and vscode will just not support the old linux libraries mainly(glibc), but emacs does, because it is perfect from the start.
Have you thought about declarative distribution like nixos?
> buys new laptop
> installs void linux to annoy people
> install emacs to annoy people
> installs xfce, doesnt configure it
gigachad
Where to get this nice wallpaper from? :)
1:49:00 This doesn't answer the specific question at hand but Emacs has `kill-whole-line` which is bound to `C-S-BS` by default.
I wish Emacs had a way to merely copy a whole line without doing anything else (deleting, pasting on the next line etc).
'M-w' copy the line to the kill-ring.
@@leonardosoteldo9542 That only works on marked region iirc. We're trying to find something like C-k where you don't have to mark any text.
Ты прогаешь, поешь и битбоксишь, мистер Зозин, ты хорош
"Clone it, fork it, fix it yourself!"
I use dotfiles to know if my formatting is correct or to see how someone implemented something
The default bindings that do the duplicate the way you want would be "yy p". In the same way that you wrote a function and a binding to it, you can just write a new binding or do a macro that can do that sequence in 1 keystroke.
I'm 5:38 in, and I don't understand. has emacs always been a GUI app with removed menu and top bar? or has zozin been using a terminal based version of emacs before?
He used i3 before which also hid the title bar, but yes it's been GUI emacs with the bars turned off.
What do you think of NixOS or GNU GuixOS? What laptop do you have to work with?
A new laptop? I've never clicked on a tsoding VOD so quickly
i think that's specific to neovim and doesn't work like that in vim, but :t. will duplicate the line while preserving the cursor position
5:24 that delivery actually made me laugh out loud
do you use M-f and M-b to move around or do you re-map them?
Re: compilation mode
I sit on the fence between emacs and neovim. My config for both editors is nearly identical because I use Evil Mode. What you said about compilation mode is spot on. It just works, and it does exactly the right thing. The vim equivalent is good, but not close to compilation mode in emacs.
Just a heads up the h264 encoder from AMD is absolute garbage, quicksync on your old laptop might even be about as good or a little better. Their h265 is “ok” though.
I always thought he used the default x264 encoder(an h264 encoder that is CPU-based) at 2500Kbps, why ? Because every time there is motion in his video the video quality degrades really quickly and when motion decreases, the quality is going up, 2500Kbps isn't enough for 1080p 30fps in H264... Even with the max that Twitch allows(6000Kbps) it's not that good. And x264 is really intensive for old CPUs, my Ryzen 7 7840HS can record a 1080p 60fps on OBS with x264 at 10Mbps(10000Kbps) without degrading the performance but CPU usage is for sure higher. Also Twitch is apparently rolling out AV1 which is a way more efficient codec compared to H264, at 6Mbps you can have a pretty good video quality at 1080p 30fps and even 60fps.
@@YannBOYERDev Your 7840HS can also do AV1 (iGPU) but the hardware design is bugged and will output 1920x1082, the quality is good though, still not nearly as good as Nvidia's AV1 (it's basically as good as CPU medium h265).
A NEW ERA
YAY
NEW STREAM i love your streams!!! 😀
For the question of copying the current line and pasting it while having your cursor on the same character in vim:
`:t.` does this, `:t-1` will paste it above.
(You can also add a range before t to copy more lines ;) )
To duplicate a line and keep cursor at the same column, in Neovim you can do :t. , but it still dropping cursor to the beginning of the line in Vim for some reason
just do `:t .` it dublicates the line and keeps the curson in same column. In my set up i added to a keybing.
VIM and Rust roast. Instant subscribe.
As a laptop connoisseur, I see you have a ThinkPad E14 gen 5. I personally have a Lenovo Legion 5P Gen 5.
How you swapped word around "-" in 29:15
Who did you mention at 17:34?
Jonathan Blow
duplicate-line available in emacs by default does not move to the duplicate line and stays at the same line, unlike the one you created.
Unbelievable, none of the so-called programmer's editors can get it right smh my h
Zozeen, do you use X11 or Wayland now?
the only thing I need an IDE for is pretty much just syntax highlighting and like code suggestions or whatever you call that feature which tells you what methods or functions are available for a given object, everything else I do from the command line
>void linux
welcome to the void, you'll never be able to leave
for cm I think it'll be better to just show position in the file through less, for example, or just do print-around with one column being error output and second column being actual print-around.
Nice!
I also bought a new laptop, but I configured my Emacs the other day.
I also stop adding so much into config file. And instead programming some Elips functions myself, the way Emacs should be used.
1:59:18 blockchain contract to manage discord access? could be very educational!
What Desktop Enviroment do you use? 😄
that's a plain XFCE
if you just want a compiler and a text editor why emacs?
After start work at 4am Moscow time, it’s what I need to watch
Все фанаты Вим просто вышли из чата(зато появилось пару фанатов Имакс)
Nah I am still here
No way he bought a new laptop, this mans gonna be unstoppable now
why not arch? ,just would like to know ?, i think it might suit you too !
1:51:46 nnoremap yyp simpler to configure though
53:24 fotis222222, hi!! Your message was the first when i turned on yt subtitles lmaoo
i used vi/vim for years but when i tried emacs ill never go back. i've been using only emacs now
i hate the vim input interrupt, you need to press insert always to input something
emacs just works, and you can customize any way you want, shortcuts are more friendly
nice bait
Typing the relative line number and then j or k is nicer than C-u, relative line number, then C-p or C-n.
But, I do dislike how vim has multiple ways to do the same things. a, i, r, c, s, x, d, ... Even though vim might be more efficient. I wonder if anything is gained after choosing between several similar options.
@@iMagUdspEllrVim by default make use of mnemonics to do stuff. Some keys might share the same function when pressed alone, but when combined with another key they yield different results.
@eeriemyxi a and i are an example of compensating for vims modal nature. If you're off by one, you can compensate for that with another key and extra cognitive overhead when you could just press C-f or type. I have a custom keyboard that helps one avoid more of the emacs-pinky issues. But, the numbers say that evil mode is more efficient. I just don't know how to quantify the extra cognitive overhead and it is a one or another thing because evil mode is only potentially more efficient if you chronically remain in normal mode. If you chronically remain in insert mode emacs commands are more efficient.
I am kind of disappointed that new IDEs coming online just mimicked vim and kakoune. I think I'll make one that mimics emacs and kakoune.
@@iMagUdspEllrexcept its not "5 j" vs "C-u 5 C-n", it's "esc 5 j i" vs "C-u 5 C-n" (or "C-(n n n n n)")
well I guess that's assuming you spend most of your time in insert mode which… I personally use text editors for writing text, but maybe I'm in the minority here
How you config your fan and power management sys ?
You don't need an IDE only if you mostly write code. At work we mostly read code, and proper navigation makes it thousand times easier.
Object oriented code is annoying af without an IDE, I wish I could find a way to better make sense of it all.
Out of curiosity, what was your previous laptop?
1:53:22 I think mapping something to either a lua function or mayyp`aj
My time zone doesn’t line up super often for twitch (I’m branchwag on there lol) but congrats on the new computer :D! Never tried void myself - might have to give it a shot
Always wondered, if you struggled with such an old laptop how did you manage to stream on twitch simultaneously?
What is the best way to give a donation to you?
11:25 a petition to rewrite Boomer in C and call it Coomer 😎
You finally upgraded.
What are the specs of the new laptop?
you used to use vim right?
Какой комп ты купил?
what is his new computer configuration?