Configuring Emacs on My New Laptop

  Рет қаралды 86,795

Tsoding Daily

Tsoding Daily

Күн бұрын

Пікірлер: 473
@two-spikes
@two-spikes Ай бұрын
tsoding bought new laptop before gta6
@beeverfeever4930
@beeverfeever4930 Ай бұрын
I'm 55 seconds in and Tsoding is starting distro wars and text editor wars already.
@nephew_tom
@nephew_tom Ай бұрын
🤣
@lkuty
@lkuty 12 күн бұрын
Hahaha this is so funny. That's why I love his videos (+ the excellent tech content of course).
@Xotchkass
@Xotchkass Ай бұрын
Tsoding: "I hate how all programming content on KZbin nowadays is just 'Hey! Look at my cool vim config'... Also, here's a 2h stream about my emacs config."
@lightechoes
@lightechoes Ай бұрын
Two wings of the same bird vibes. 😅
@strawberry_blush81
@strawberry_blush81 Ай бұрын
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
@MrAlanCristhian
@MrAlanCristhian Ай бұрын
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.
@Unassuming_Gay
@Unassuming_Gay Ай бұрын
Also tsoding "Programming shuld be fun" immediately starts bashing anyone not using the shit he likes
@michaelvanzyl9418
@michaelvanzyl9418 Ай бұрын
Vim users are not invited!
@labsendeyshent
@labsendeyshent Ай бұрын
OG viewer detected
@prostickman4946
@prostickman4946 Ай бұрын
damn, installing emacs right away
@nates9778
@nates9778 Ай бұрын
RAWR! HISS!! SNARL!!! This is Heresy >:U
@ecranfortessa
@ecranfortessa Ай бұрын
Damn.
@surajmandal_567
@surajmandal_567 Ай бұрын
You don't need an OS running in an OS 😂
@JohnDoe-vb3ks
@JohnDoe-vb3ks Ай бұрын
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. '
@NikPiermafrost
@NikPiermafrost Ай бұрын
New laptop, new distro Uses Void Based
@flamendless
@flamendless Ай бұрын
New laptop? No need to write in C anymore because your RAM can handle the modern web devs crap 😂
@Momoyon
@Momoyon Ай бұрын
TSODING GOT A NEW PC LETSS GOOOOO
@rudiger86
@rudiger86 Ай бұрын
where?
@nickelpence
@nickelpence Ай бұрын
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.
@ecosta
@ecosta 29 күн бұрын
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.
@rudolf-adamkovic
@rudolf-adamkovic Ай бұрын
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.
@patsbelly
@patsbelly Ай бұрын
0:28 how dare you use a different package manager than me. I will not stand for this.
@RostislavArts
@RostislavArts Ай бұрын
Great video (I use neovim btw)
@ivanprikaz873
@ivanprikaz873 12 күн бұрын
Tsodiing is the reason why I'm trying to use emacs vanila keybindings and minimal configuration. Your workflow is amazing!
@ionutred8298
@ionutred8298 Ай бұрын
11:13 when will you release this on Spotify?
@two-spikes
@two-spikes Ай бұрын
4:16 Emacs lips 🗿
@mehdi7586
@mehdi7586 Ай бұрын
emacs 28 comes with fido-mode and fido-vertical-mode. so you no longer need smex and ido.
@Cemonix
@Cemonix Ай бұрын
tea temperature is gone, oh no
@Lorenzo1938
@Lorenzo1938 Ай бұрын
Even the porn folder
@rogo7330
@rogo7330 Ай бұрын
and porn folder size too
@ndrechtseiter
@ndrechtseiter Ай бұрын
Porn folder size as well 😢
@Parker8752
@Parker8752 Ай бұрын
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.
@ginzilb3395
@ginzilb3395 Ай бұрын
A new laptop that is crazy.
@arcxm
@arcxm Ай бұрын
Feels like an updated version of your old emacs setup video. Got me to try out emacs and play with it for a bit
@Pixelsuft
@Pixelsuft Ай бұрын
He finally switched to Void Linux!
@RussTeeTrombone
@RussTeeTrombone Ай бұрын
“Welcome to another recreational programming stream witha mister sausage”
@YannBOYERDev
@YannBOYERDev Ай бұрын
He didn't say that. XD
@YannBOYERDev
@YannBOYERDev Ай бұрын
He said"witha mister zozin" or tsoding if you prefer it that way.
@RussTeeTrombone
@RussTeeTrombone Ай бұрын
@@YannBOYERDev Issa MISTER SAUSASGE
@FlanPoirot
@FlanPoirot Ай бұрын
so, should I call you mista?
@alst4817
@alst4817 Ай бұрын
Meesta sausage!
@cranil
@cranil Ай бұрын
For a sec I thought the mofo moved to windows 😳
@rudiger86
@rudiger86 Ай бұрын
Just as everyone else is moving away from windows he moves in.... it would be a boss move!
@hedlund
@hedlund Ай бұрын
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.
@logyross6883
@logyross6883 Ай бұрын
This is crazy, I checked out your old Emacs configuration video again just a few hours ago.
@NotMarkKnopfler
@NotMarkKnopfler Ай бұрын
Tsoding: "Serious people don't need VS code" Me: 😢
@voidshell6273
@voidshell6273 Ай бұрын
🎵 'Just rewrite that shit in C, Rust is just a fallacy...' 🎵
@inertia_dagger
@inertia_dagger Ай бұрын
actually happy that you got a machine so old anymore, congrats!
@BadBakh
@BadBakh Ай бұрын
Congratulations on the new laptoppp
@willmedrano98
@willmedrano98 Ай бұрын
So relatable. Compilation is the main thing keeping me on bloated Emacs instead of modern NeoVim.
@mjthebest7294
@mjthebest7294 Ай бұрын
You sir, are the king of thumbnails.
@Czeckie
@Czeckie Ай бұрын
text editors are like programming languages: they all suck
@krux02
@krux02 Ай бұрын
Unless you dedicate half your life to write your own.
@c4llv07e
@c4llv07e Ай бұрын
xu do tavla fo la lojban
@iatheman
@iatheman Ай бұрын
@@krux02 Don't discourage me like that.
@limalimon1738
@limalimon1738 Ай бұрын
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!
@akshitkumar9402
@akshitkumar9402 Ай бұрын
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.
@christer8964
@christer8964 Ай бұрын
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.
@pragyan394
@pragyan394 Ай бұрын
Imagine using Emacs in 2024. This was brought to you by the Neovim gang
@humbornjo
@humbornjo Ай бұрын
impressed by the shadow of the peng, real art
@epsilonnought2648
@epsilonnought2648 Ай бұрын
As a laptop connoisseur, I see you have a ThinkPad E14 gen 5. I personally have a Lenovo Legion 5P Gen 5.
@LuvingToryChristman
@LuvingToryChristman Ай бұрын
Congrats to your new Laptop! Happy for you! :D (...coming from a die-hard vim user.. ;)
@emdeetee8363
@emdeetee8363 Ай бұрын
A new laptop? I've never clicked on a tsoding VOD so quickly
@4ikapikadesi
@4ikapikadesi Ай бұрын
Ты прогаешь, поешь и битбоксишь, мистер Зозин, ты хорош
@berkeenver6752
@berkeenver6752 Ай бұрын
Hayırlı olsun tsoding abime
@LBCreateSpace
@LBCreateSpace Ай бұрын
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
@baboomka
@baboomka Ай бұрын
53:24 fotis222222, hi!! Your message was the first when i turned on yt subtitles lmaoo
@jaymr2795
@jaymr2795 Ай бұрын
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?
@TsodingDaily
@TsodingDaily Ай бұрын
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.
@fjfjfjfjfjfj973
@fjfjfjfjfjfj973 Ай бұрын
@@TsodingDaily maybe switch to wayland with sway. In my experience there's no working only telegram notifications (which is replaceable by mako notification daemon).
@Momoyon
@Momoyon Ай бұрын
​@@TsodingDailyuse dwm
@yablock0
@yablock0 Ай бұрын
​@@TsodingDaily you can use most of xfce (it's bars (with tray btw) and applications) with i3 as window manager.
@oddstap6976
@oddstap6976 Ай бұрын
@@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.
@Pasora
@Pasora Ай бұрын
A NEW ERA
@Dacusx
@Dacusx Ай бұрын
VIM and Rust roast. Instant subscribe.
@МатвейРовчак-в4о
@МатвейРовчак-в4о Ай бұрын
Все фанаты Вим просто вышли из чата(зато появилось пару фанатов Имакс)
@catfan5618
@catfan5618 Ай бұрын
Nah I am still here
@iWillAvert
@iWillAvert Ай бұрын
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.
@jfqlkd
@jfqlkd Ай бұрын
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 ;) )
@yramagicman675
@yramagicman675 Ай бұрын
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.
@insanesup9648
@insanesup9648 Ай бұрын
After start work at 4am Moscow time, it’s what I need to watch
@anidnmeno
@anidnmeno Ай бұрын
"Clone it, fork it, fix it yourself!"
@seventhtenth
@seventhtenth Ай бұрын
I use dotfiles to know if my formatting is correct or to see how someone implemented something
@eyemotif
@eyemotif Ай бұрын
5:24 that delivery actually made me laugh out loud
@luigidabro
@luigidabro Ай бұрын
"my text editor doesn't know that your text editor exists"
@olleicua
@olleicua Ай бұрын
column-number-mode shows your cursors horizontal position in the bottom bar
@BurningR
@BurningR 18 күн бұрын
instant subscribe. you are hilarious
@jiulh
@jiulh Ай бұрын
i see mousepad first time, but guess i love mousepad now
@RukopisyNarnie
@RukopisyNarnie Ай бұрын
No way, I use void for 2 years and never thought you would try it out.
@krumothyy
@krumothyy 14 күн бұрын
>void linux welcome to the void, you'll never be able to leave
@Myexpectationsarerealistic
@Myexpectationsarerealistic Ай бұрын
You finally upgraded.
@SashikaSandeepa
@SashikaSandeepa Ай бұрын
Your os configuration is great 😂
@corteztt518
@corteztt518 Ай бұрын
Can as a beginner follow what he did on my laptop? Or I’m asking to get lost
@tofaa3668
@tofaa3668 Ай бұрын
No way he bought a new laptop, this mans gonna be unstoppable now
@Odod4000
@Odod4000 Ай бұрын
YAY NEW STREAM i love your streams!!! 😀
@uuu12343
@uuu12343 Ай бұрын
Time to configure and give emacs a shot together with this video
@luigidabro
@luigidabro Ай бұрын
Oh, I always thought emacs was a tui, not a gui
@Kitulous
@Kitulous Ай бұрын
SAME
@kraken296
@kraken296 Ай бұрын
it can be both
@yjlom
@yjlom Ай бұрын
both, but the gui has more features also with a few extensions it's a great window manager / desktop environment
@tianned
@tianned Ай бұрын
Never assumed that mr zozin participated in text editor wars :D
@RichardLofty
@RichardLofty Ай бұрын
57:30 emacs default c-mode not being able to parse 7 megs lol! 200k lines 😂 I'm dying!
@programminglife8903
@programminglife8903 Ай бұрын
It's an c-mode's issue, not Emacs' Should've at least watch that segment till the end.
@RichardLofty
@RichardLofty Ай бұрын
@@programminglife8903 I did, and the whole point IS THAT the same devs that made emacs, they also made the default C mode.
@RichardLofty
@RichardLofty Ай бұрын
@@programminglife8903 imagine writing YOUR OWN C PARSER because the original is so slow. Respect to Tsoding for that, but this is obviously a sunk cost at this point. Just switch to something written by real engineers. Instead of trying to fix a broken mess, and then telling yourself "now it's not broken, see?" - well by default it still is lol.
@yjlom
@yjlom Ай бұрын
on the one hand when do you ever open 200k lines files on the other hand yeah this (and a few other pet peeves) makes me want to rewrite emacs (a terrible idea)
@brambasiel
@brambasiel Ай бұрын
@@RichardLofty i hope you're not on linux
@RichardLofty
@RichardLofty Ай бұрын
51:04 it does matter. Vim can open a 100gig file in no time. Emacs dies even thinking about it.
@azergante8268
@azergante8268 Ай бұрын
IIRC even vim doesn't handle huge single-line files very well (like data dumps etc), any go to editor for that?
@aaabbb-gu5pz
@aaabbb-gu5pz Ай бұрын
@@azergante8268 but, why, this is 1-2 rows is I develop my text editor?
@tai9404
@tai9404 Ай бұрын
@@azergante8268 python
@kuettler
@kuettler Ай бұрын
Last time I read a 100gig file, I died, too. :( But admittedly, there is always joe if you need it.
@ClosetFemboy
@ClosetFemboy Ай бұрын
@@azergante8268 EmEditor is the go to for that
@lievenpetersen
@lievenpetersen Ай бұрын
new laptop Pog omg that desktop scared me for a moment xD
@jeffersonmcgee9560
@jeffersonmcgee9560 Ай бұрын
0:30 Holy moly!
@the.monologue
@the.monologue 23 күн бұрын
> buys new laptop > installs void linux to annoy people > install emacs to annoy people > installs xfce, doesnt configure it gigachad
@DomenicoPezzullo-ib9bg
@DomenicoPezzullo-ib9bg Ай бұрын
Goated video (i use helix and i imagine the youngest emacs user is like 95 years old)
@DomenicoPezzullo-ib9bg
@DomenicoPezzullo-ib9bg Ай бұрын
(you are the only exception)
@alvin55531
@alvin55531 Ай бұрын
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).
@leonardosoteldo9542
@leonardosoteldo9542 26 күн бұрын
'M-w' copy the line to the kill-ring.
@alvin55531
@alvin55531 25 күн бұрын
@@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.
@iatheman
@iatheman Ай бұрын
TIL c-mode exists. Never used emacs and already hate it. The rant at 59:00 got me 🤣
@blzr8
@blzr8 Ай бұрын
fck it am learnin emacs and configure it with vim binds
@salim444
@salim444 Ай бұрын
you're a wizard @blzr8 hahaha
@dadudeme
@dadudeme Ай бұрын
Enable evil mode and you got vom keybinds.
@gepacc
@gepacc Ай бұрын
Don’t be a coward brother just go run vanilla eMacs raw for a month straight
@inferrna
@inferrna Ай бұрын
34:00 tsoding herecy goes completely unsafe
@somabencsik
@somabencsik Ай бұрын
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.
@xbelanch
@xbelanch Ай бұрын
Tsoding in 16:9. Epic
@Stradlater25
@Stradlater25 Ай бұрын
Увидел емакс -- подписался
@pimesonhadron
@pimesonhadron Ай бұрын
I’m a Vim (neo vim now) user but even I find this fascinating :) I’m still sticking to Vim and Debian though :P
@mainlakshayhoon
@mainlakshayhoon Ай бұрын
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.
@TsodingDaily
@TsodingDaily Ай бұрын
Unbelievable, none of the so-called programmer's editors can get it right smh my h
@azergante8268
@azergante8268 Ай бұрын
1:59:18 blockchain contract to manage discord access? could be very educational!
@xccr2
@xccr2 Ай бұрын
hope you will enjoy void linux
@Momoyon
@Momoyon Ай бұрын
Hi twitch chat!
@dtomvan
@dtomvan Ай бұрын
1:51:46 nnoremap yyp simpler to configure though
@portersky
@portersky Ай бұрын
no way, new laptop.
@nsxz1014
@nsxz1014 Ай бұрын
"Serious people don't use VS code"
@rudiger86
@rudiger86 Ай бұрын
I use Jetbrains so imagine how I feel
@ariandannemann4544
@ariandannemann4544 Ай бұрын
Insulting vim and debian in the first minute? He really wants to start a war!
@rogo7330
@rogo7330 Ай бұрын
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.
@freddydurkee8632
@freddydurkee8632 Ай бұрын
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
@ernestodelgato930
@ernestodelgato930 Ай бұрын
I need to know, do you ever use evil mode?
@owlmostdead9492
@owlmostdead9492 Ай бұрын
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.
@YannBOYERDev
@YannBOYERDev Ай бұрын
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.
@owlmostdead9492
@owlmostdead9492 Ай бұрын
@@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).
@Raspredval1337
@Raspredval1337 Ай бұрын
11:25 a petition to rewrite Boomer in C and call it Coomer 😎
@sirenti9384
@sirenti9384 Ай бұрын
Any nixos enjoyers?
@Redyf
@Redyf Ай бұрын
Yessir
@cathalogrady4560
@cathalogrady4560 19 күн бұрын
This is a nice to have, however in vim I can on the fly program it to do the same. `yy` copy the line, `qq`, start recording a macro in register q, `pf.` paste and goto "." character, `q` finish recording macro. Now you can repeat with `@q` or in neovim `Q`.
@MikhailAksenovV
@MikhailAksenovV Ай бұрын
As long as you're not using clojure core async in Emacs lisp I am happy. But that would have been funny tho - having a macro that does crazy async with coroutines.
@korcakd2
@korcakd2 Ай бұрын
Have you thought about declarative distribution like nixos?
I tried React and it Ruined My Life
1:19:10
Tsoding Daily
Рет қаралды 150 М.
Parsing 3D File in C
1:24:01
Tsoding Daily
Рет қаралды 32 М.
Can You Find Hulk's True Love? Real vs Fake Girlfriend Challenge | Roblox 3D
00:24
I Have 2 Weeks to File a Dispute for this Scam TV
25:35
Linus Tech Tips
Рет қаралды 3,3 МЛН
Arch Linux Experience - Hyprland
39:02
Bog
Рет қаралды 355 М.
Learning C - Build Your Own Lisp [1]
2:16:48
Domagoj Mišković
Рет қаралды 1,6 М.
I regret doing this...
1:20:07
Tsoding Daily
Рет қаралды 85 М.
How I make Windows look good
7:58
Coding with Sphere
Рет қаралды 158 М.
The Ultimate Tier Programming Tier List | Prime Reacts
26:57
ThePrimeTime
Рет қаралды 475 М.
How 1 Software Engineer Outperforms 138 - Lichess Case Study
22:28
Tom Delalande
Рет қаралды 264 М.
Python Django Web Framework - Full Course for Beginners
3:45:41
freeCodeCamp.org
Рет қаралды 4,6 МЛН