Configuring Emacs on My New Laptop

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • Streamed Live on Twitch: / tsoding
    Enable Subtitles for Twitch Chat
    References:
    - My dotfiles: github.com/rex...
    - en.wikipedia.o...
    - github.com/rex...
    - github.com/rex...
    - github.com/tso...
    - magit.vc/manua...
    Support:
    - BTC: bc1qj820dmeazpeq5pjn89mlh9lhws7ghs9v34x9v9
    - Pay for my VPS: zap-hosting.co...

Комментарии • 358

  • @two-spikes
    @two-spikes День назад +596

    tsoding bought new laptop before gta6

  • @beeverfeever4930
    @beeverfeever4930 День назад +216

    I'm 55 seconds in and Tsoding is starting distro wars and text editor wars already.

  • @michaelvanzyl9418
    @michaelvanzyl9418 День назад +276

    Vim users are not invited!

  • @NikPiermafrost
    @NikPiermafrost День назад +63

    New laptop, new distro
    Uses Void
    Based

  • @Xotchkass
    @Xotchkass День назад +156

    Tsoding: "I hate how all programming content on RUclips nowadays is just 'Hey! Look at my cool vim config'... Also, here's a 2h stream about my emacs config."

    • @lightechoes
      @lightechoes День назад +2

      Two wings of the same bird vibes. 😅

    • @strawberry_blush81
      @strawberry_blush81 День назад +24

      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 День назад +6

      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.

    • @arthur-godart
      @arthur-godart День назад +6

      @@MrAlanCristhian Xotchkass: makes a joke
      You: "you shouldn't take him so serious"

  • @RostislavArts
    @RostislavArts День назад +57

    Great video (I use neovim btw)

  • @flamendless
    @flamendless День назад +23

    New laptop? No need to write in C anymore because your RAM can handle the modern web devs crap 😂

  • @Momoyon
    @Momoyon День назад +44

    TSODING GOT A NEW PC LETSS GOOOOO

  • @patsbelly
    @patsbelly День назад +19

    0:28 how dare you use a different package manager than me. I will not stand for this.

  • @JohnDoe-vb3ks
    @JohnDoe-vb3ks День назад +15

    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. '

  • @two-spikes
    @two-spikes День назад +23

    4:16 Emacs lips 🗿

  • @cranil
    @cranil День назад +16

    For a sec I thought the mofo moved to windows 😳

    • @rudiger86
      @rudiger86 15 часов назад +1

      Just as everyone else is moving away from windows he moves in.... it would be a boss move!

  • @ionutred8298
    @ionutred8298 День назад +22

    11:13 when will you release this on Spotify?

  • @mehdi7586
    @mehdi7586 День назад +7

    emacs 28 comes with fido-mode and fido-vertical-mode. so you no longer need smex and ido.

  • @ginzilb3395
    @ginzilb3395 День назад +10

    A new laptop that is crazy.

  • @rudolf-adamkovic
    @rudolf-adamkovic День назад +5

    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.

  • @Cemonix
    @Cemonix День назад +21

    tea temperature is gone, oh no

    • @Lorenzo1938
      @Lorenzo1938 День назад

      Even the porn folder

    • @rogo7330
      @rogo7330 День назад +3

      and porn folder size too

    • @ndrechtseiter
      @ndrechtseiter 23 часа назад +6

      Porn folder size as well 😢

  • @NotMarkKnopfler
    @NotMarkKnopfler День назад +7

    Tsoding: "Serious people don't need VS code"
    Me: 😢

  • @blzr8
    @blzr8 День назад +8

    fck it am learnin emacs and configure it with vim binds

    • @salim444
      @salim444 11 часов назад

      you're a wizard @blzr8 hahaha

  • @Pixelsuft
    @Pixelsuft День назад +6

    He finally switched to Void Linux!

  • @RussTeeTrombone
    @RussTeeTrombone День назад +8

    “Welcome to another recreational programming stream witha mister sausage”

    • @YannBOYERDev
      @YannBOYERDev 3 часа назад

      He didn't say that. XD

    • @YannBOYERDev
      @YannBOYERDev 3 часа назад

      He said"witha mister zozin" or tsoding if you prefer it that way.

    • @RussTeeTrombone
      @RussTeeTrombone Час назад

      @@YannBOYERDev Issa MISTER SAUSASGE

  • @pragyan394
    @pragyan394 День назад +10

    Imagine using Emacs in 2024. This was brought to you by the Neovim gang

  • @alh-xj6gt
    @alh-xj6gt 23 часа назад +4

    The editor/IDE wars. Yeah it doesn't matter they all somehow suck I'm not a fan of any of them. Sure does help a bit to be able to jump to line numbers, have some fast(!) candy coloured syntax salad or have some completion functionality.
    I grew up with DOS editor and used default windows notepad with find on the side in a console in the 90s as findstr didn't exist yet. Switched to linux used pico and later nano so I didn't had to suffer through what ever vim and emacs new user experience was and still is. Once movement is done through searches it will be quick enough for any codebase and really all editors can do search .. even plain windows 3.1 notepad. in convoluted and long named codebases that are written with autocomplete than it becomes nearly mandatory to use autocomplete-able editors even as a fast and accurate typer. But even then I tend to alias the stuff and work at the problem till it works and search + replaced it with what ever ridiculous naming is in place and needed to keep everyone happy and off my back.
    Would be interesting to see the boomer translation to C. I mean just watched 2 hours of you getting your old emacs config current and learned a few things here and there. Going through porting stuff over to another language will have at least similar value.
    "Think of the children." Compelled Rust use, otherwise one is tagged as securityphobic. The only angle a western mind seems to comprehend change and criticism these days. I'm still waiting for the radical greens to demand detailed explanation why software takes so much cycles and wattage and demand somehow reparations for wasted cycles.

  • @fischi9129
    @fischi9129 День назад +2

    to be honest, VSCode doesn't have the toolbar either. It just has a sidebar with files etc, which are actually tools, and the top bar like every GUI app pretty much. No Undo button that I know of in VScode, or Save, or copy/paste/cut.... xD

  • @nickelpence
    @nickelpence День назад +2

    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.

  • @RichardLofty
    @RichardLofty День назад +20

    51:04 it does matter. Vim can open a 100gig file in no time.
    Emacs dies even thinking about it.

    • @azergante8268
      @azergante8268 День назад +1

      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 День назад +4

      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

  • @RichardLofty
    @RichardLofty День назад +5

    57:30 emacs default c-mode not being able to parse 7 megs lol! 200k lines 😂 I'm dying!

    • @programminglife8903
      @programminglife8903 23 часа назад

      It's an c-mode's issue, not Emacs'
      Should've at least watch that segment till the end.

    • @RichardLofty
      @RichardLofty 21 час назад +2

      @@programminglife8903 I did, and the whole point IS THAT the same devs that made emacs, they also made the default C mode.

    • @RichardLofty
      @RichardLofty 20 часов назад +3

      @@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.

  • @Czeckie
    @Czeckie 9 часов назад +2

    text editors are like programming languages: they all suck

  • @azergante8268
    @azergante8268 День назад +2

    1:59:18 blockchain contract to manage discord access? could be very educational!

  • @myfavouritecolorisgreen
    @myfavouritecolorisgreen 8 часов назад +2

    i think you crashed gnu servers by releasing this video xD

  • @Momoyon
    @Momoyon День назад +5

    Hi twitch chat!

  • @finskiy_yt
    @finskiy_yt День назад +4

    stream on new laptop but bitrate of stream is same 👎

    • @TsodingDaily
      @TsodingDaily  День назад +11

      Hm... Maybe this is due to ffmpeg script that I use to edit my vods. Thank you for the heads up!

  • @anidnmeno
    @anidnmeno День назад +4

    "Clone it, fork it, fix it yourself!"

    • @seventhtenth
      @seventhtenth 21 час назад

      I use dotfiles to know if my formatting is correct or to see how someone implemented something

  • @nsxz1014
    @nsxz1014 День назад +4

    "Serious people don't use VS code"

    • @rudiger86
      @rudiger86 15 часов назад

      I use Jetbrains so imagine how I feel

  • @limalimon1738
    @limalimon1738 16 часов назад +1

    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!

  • @МатвейРовчак-в4о
    @МатвейРовчак-в4о День назад +3

    Все фанаты Вим просто вышли из чата(зато появилось пару фанатов Имакс)

  • @mibeon
    @mibeon 10 часов назад +1

    Не могу полностью согласиться, что vi/vim медленне emacs, но только если работать без подсветки синтаксиса. Открываю болшие файлы. Смотрел твой видос и специально открыл файл в 180 мегов с 2.300.000+ строками. Все сердито быстро и без всякой задержки.
    Если открыть такой файл с подсветкой и еще начать поиск, то можно слышать, как процессор шепчет: "Ляяяяя, ты мудила" 😅

  • @sirenti9384
    @sirenti9384 День назад +5

    Any nixos enjoyers?

    • @Redyf
      @Redyf 22 часа назад +1

      Yessir

  • @inferrna
    @inferrna День назад +2

    34:00 tsoding herecy goes completely unsafe

  • @luigidabro
    @luigidabro День назад +4

    Oh, I always thought emacs was a tui, not a gui

  • @ivanjermakov
    @ivanjermakov День назад +15

    Downgrade from i3 to xfce, unbelievable.

  • @xccr2
    @xccr2 День назад +2

    hope you will enjoy void linux

  • @MrAlanCristhian
    @MrAlanCristhian День назад +7

    If you stopped using Debian because OBS is not working with an NVIDIA graphic card, the solution is to build the nvidia-vaapi-driver 0.0.10 from source. The maintainer of that package just disappeared. Two guys requested to be the new maintainers of it, but in the meantime, you have to build it yourself.

    • @wtfisgoingon535
      @wtfisgoingon535 18 часов назад +3

      I don't see novidia in the neofetch

    • @rudiger86
      @rudiger86 15 часов назад

      @@wtfisgoingon535 he is a bot... just back away slowly and don't give out any personal information, except to me! you can trust me.. definitely

    • @wvovaw3052
      @wvovaw3052 12 часов назад +1

      Using linux sucks... But using something else sucks even more

  • @owlmostdead9492
    @owlmostdead9492 20 часов назад +2

    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 3 часа назад

      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 3 часа назад

      @@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).

  • @wvovaw3052
    @wvovaw3052 12 часов назад +1

    Void Linux mentioned 🗣🗣🗣 What the f is Systemd 💯💯💯

  • @NetBSDToaster-u8e
    @NetBSDToaster-u8e День назад +3

    Poggers

  • @jaymr2795
    @jaymr2795 День назад +4

    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  День назад +8

      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 День назад +3

      ​@@TsodingDailyuse dwm

    • @yablock0
      @yablock0 День назад +1

      ​@@TsodingDaily you can use most of xfce (it's bars (with tray btw) and applications) with i3 as window manager.

    • @oddstap6976
      @oddstap6976 День назад +1

      @@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.

  • @howto-xd6tq
    @howto-xd6tq День назад +2

    now get new internet

  • @mainlakshayhoon
    @mainlakshayhoon 5 часов назад +1

    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  4 часа назад

      Unbelievable, none of the so-called programmer's editors can get it right smh my h

  • @SashikaSandeepa
    @SashikaSandeepa 13 часов назад +1

    Your os configuration is great 😂

  • @27onionnebell40
    @27onionnebell40 8 часов назад +1

    What tsoding said: wwp
    What tsoding did: yyp

  • @Pasora
    @Pasora День назад +2

    A NEW ERA

  • @rogo7330
    @rogo7330 День назад +1

    Emacs users **handshake** Arch users
    > making their lives as miserable as possible

    • @alexandersanchez9138
      @alexandersanchez9138 21 час назад

      >>Developing in Haskell (in emacs) with the Arch repo Haskell packages
      That was the only truly cursed Arch Linux moment I’ve (yet) experienced.

  • @smarterlife7331
    @smarterlife7331 9 часов назад

    👇Dear Tsoding, "But why only Emacs is the acceptable text editor" is the question everybody is interested those who like this comment 👇

  • @QQ-gn7tc
    @QQ-gn7tc 18 часов назад

    Since you are using Void Linux right now, and also talked a bit about Emacs 24, how about start talking about OS and/or software architecture ?

  • @DobryWujaszekKun
    @DobryWujaszekKun День назад

    meh... fedora, arch, nix, gentoo, but void? Big meh.
    Void linux is the system that does what all mentioned is capable of but worse xD

  • @hedlund
    @hedlund 23 часа назад

    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.

  • @Odod4000
    @Odod4000 День назад +1

    What Desktop Enviroment do you use? 😄

    • @cikuozzo
      @cikuozzo День назад +3

      that's a plain XFCE

  • @pimesonhadron
    @pimesonhadron 15 часов назад

    I’m a Vim (neo vim now) user but even I find this fascinating :)
    I’m still sticking to Vim and Debian though :P

  • @christer8964
    @christer8964 23 часа назад

    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.

  • @karmavil4034
    @karmavil4034 14 часов назад

    1:17:30 Because you're not working but streaming .. different line of work where you're busy entertaining the audience. Think of it as "you value your audience time rather than your own" (at least while the stream is on). But the truth is that you could just pretend that's what it is, but you already know that path (pretend) has nothing you're interested in

  • @yramagicman675
    @yramagicman675 23 часа назад

    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.

  • @epsilonnought2648
    @epsilonnought2648 День назад

    As a laptop connoisseur, I see you have a ThinkPad E14 gen 5. I personally have a Lenovo Legion 5P Gen 5.

  • @iWillAvert
    @iWillAvert 12 часов назад

    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.

  • @rogo7330
    @rogo7330 22 часа назад

    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.

  • @MikhailAksenovV
    @MikhailAksenovV 23 часа назад

    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.

  • @wernersmidt3298
    @wernersmidt3298 День назад

    The reason Tsoding is using Emacs, is because Rachmaninov's fingers could span 12 keys on the piano.

  • @LuvingToryChristman
    @LuvingToryChristman День назад

    Congrats to your new Laptop! Happy for you! :D (...coming from a die-hard vim user.. ;)

  • @rhogal8310
    @rhogal8310 День назад

    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

  • @logyross6883
    @logyross6883 День назад

    This is crazy, I checked out your old Emacs configuration video again just a few hours ago.

  • @vladinosky
    @vladinosky День назад

    Always wondered, if you struggled with such an old laptop how did you manage to stream on twitch simultaneously?

  • @inertia_dagger
    @inertia_dagger 14 часов назад

    got curious and opened amalgamated sqlite3 in nvim with treesitter. it took like 3 seconds to open, but then it didn't lag at all when navigating the file

  • @_n0emo
    @_n0emo 21 час назад

    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

  • @Vlad-xh9sy
    @Vlad-xh9sy 10 часов назад

    just do `:t .` it dublicates the line and keeps the curson in same column. In my set up i added to a keybing.

  • @freddydurkee8632
    @freddydurkee8632 23 часа назад

    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

  • @baboomka
    @baboomka 10 часов назад

    53:24 fotis222222, hi!! Your message was the first when i turned on yt subtitles lmaoo

  • @emdeetee8363
    @emdeetee8363 День назад

    A new laptop? I've never clicked on a tsoding VOD so quickly

  • @QQ-gn7tc
    @QQ-gn7tc 18 часов назад +1

    29:15 excuse me, how did you swap "display" and "global" so quickly? (asking for a friend)

    • @ProjectV95
      @ProjectV95 16 часов назад +2

      M-t (Alt+T), which runs transpose-words

    • @QQ-gn7tc
      @QQ-gn7tc 10 часов назад +2

      @@ProjectV95 learned, a new thing today. stay azozin, thx

    • @ProjectV95
      @ProjectV95 9 часов назад +1

      @@QQ-gn7tc No problem! If I recall correctly, I actually learnt the fact of Mr Tsoding himself, in one of his past stream VODs

  • @ivandimitrov4410
    @ivandimitrov4410 22 часа назад

    I got baited to write this comment - in vim you can create a keybind to the command :t. to duplicate a line and keep the cursor

  • @arcxm
    @arcxm 23 часа назад

    Feels like an updated version of your old emacs setup video. Got me to try out emacs and play with it for a bit

  • @kuijaye
    @kuijaye 16 часов назад

    Emacs dont support vim syntax since they believe no true vim user would ever want to use emacs to edit vimrc

  • @cheebadigga4092
    @cheebadigga4092 20 часов назад

    lmaoooooooooooooooo "Probably introduced at or before Emacs version 18" now thats a hint xD

  • @windus08
    @windus08 22 часа назад

    OS with cli only ❌.
    OS with ugly as fuсk interface✅

  • @olleicua
    @olleicua 19 часов назад

    column-number-mode shows your cursors horizontal position in the bottom bar

  • @SamiDj-k5v
    @SamiDj-k5v 21 час назад

    i really like vim make command, just set `makeprg` variable

  • @Odod4000
    @Odod4000 День назад

    YAY
    NEW STREAM i love your streams!!! 😀

  • @ariandannemann4544
    @ariandannemann4544 День назад

    Insulting vim and debian in the first minute? He really wants to start a war!

  • @n00b_Realm
    @n00b_Realm 20 часов назад

    Be mindful of your language, you're not 14 years old anymore.

  • @ounyil9k659
    @ounyil9k659 20 часов назад

    So, I just learn that ChatGPT is banned in Russia.

  • @inferrna
    @inferrna День назад

    01:06:30 then try Zed. It as fast as any text editor, but actually is an IDE.

  • @RukopisyNarnie
    @RukopisyNarnie День назад

    No way, I use void for 2 years and never thought you would try it out.

  • @JamesSjaalman
    @JamesSjaalman 19 часов назад

    Maybe emacs leads to the Stockholm syndrome, too ;-}

  • @tianned
    @tianned День назад

    Never assumed that mr zozin participated in text editor wars :D

  • @AhmadMughal1
    @AhmadMughal1 19 часов назад

    emacs is a text editor and the only thing that is not good about it is the actual editing lol.

  • @ThatGuyexe
    @ThatGuyexe День назад +1

    Penger kinda fire

  • @androth1502
    @androth1502 День назад

    the only reason i don't like emacs is because it runs like ass on windows.

  • @iambasantarai
    @iambasantarai 9 часов назад

    1:29 recently i was thinking about the same thing...

  • @Vili69420
    @Vili69420 День назад +1

    Why dont u get money from twitch and stuff? Just wondering.

  • @inertia_dagger
    @inertia_dagger День назад

    actually happy that you got a machine so old anymore, congrats!

  • @berkeenver6752
    @berkeenver6752 День назад

    Hayırlı olsun tsoding abime