Three HUGE Mistakes New Emacs Users Make

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.ค. 2024
  • It's a common story. A person hears about Emacs and wants to give it a try, but their initial experience is usually pretty bad. Why? Well, I think a lot of it has to do with three HUGE mistakes that new Emacs users tend to make.
    WANT TO SUPPORT THE CHANNEL?
    💰 Patreon: / distrotube
    💳 Paypal: www.paypal.com/cgi-bin/webscr...
    🛍️ Amazon: amzn.to/2RotFFi
    👕 Teespring: teespring.com/stores/distrotube
    DONATE CRYPTO:
    💰 Bitcoin: 1Mp6ebz5bNcjNFW7XWHVht36SkiLoxPKoX
    🐶 Dogecoin: D5fpRD1JRoBFPDXSBocRTp8W9uKzfwLFAu
    📕 LBC: bMfA2c3zmcLxPCpyPcrykLvMhZ7A5mQuhJ
    SOCIAL PLATFORMS:
    🗨️ Mastodon: distrotoot.com/@derek
    👫 Reddit: / distrotube
    📽️ LBRY/Odysee: odysee.com/$/invite/@DistroTu...
    DT ON THE WEB:
    🕸️ Website: distrotube.com/
    🐿️ Gemini Capsule: gemini://distro.tube
    📁 GitLab: gitlab.com/dwt1
    FREE AND OPEN SOURCE SOFTWARE THAT I USE:
    🌐 Brave Browser - brave.com/dis872
    📽️ Open Broadcaster Software: obsproject.com/
    🎬 Kdenlive: kdenlive.org
    🎨 GIMP: www.gimp.org/
    🎵 Ardour: ardour.org/
    💻 VirtualBox: www.virtualbox.org/
    🗒️ Doom Emacs: github.com/hlissner/doom-emacs
    Your support is very much appreciated. Thanks, guys!
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 283

  • @scarceorange3359
    @scarceorange3359 2 ปีที่แล้ว +372

    The biggest mistake is not using Emacs.

    • @rxn7
      @rxn7 2 ปีที่แล้ว +36

      vim*

    • @Zephyrus0
      @Zephyrus0 2 ปีที่แล้ว +8

      @@rxn7 vi* :]

    • @yuliusseraph4973
      @yuliusseraph4973 2 ปีที่แล้ว +4

      @@Zephyrus0 ed*

    • @dakata2416
      @dakata2416 2 ปีที่แล้ว +19

      @@yuliusseraph4973 punch cards*

    • @dorukayhanwastaken
      @dorukayhanwastaken 2 ปีที่แล้ว +4

      But muh VSCode ;_;

  • @jogo2000
    @jogo2000 2 ปีที่แล้ว +46

    Startup time of less than 2 seconds is not a problem because you should never quit emacs in the first place.

    • @matejskulsky5746
      @matejskulsky5746 11 หลายเดือนก่อน +12

      I mean... it is the fastest OS boot time Ive seen.

  • @jsiegel62
    @jsiegel62 2 ปีที่แล้ว +96

    @dt: Terminal mode emacs instances can indeed leverage the server. Just use the -nw flag with 'emacsclient' (rather than 'emacs,' which is what you used in the demo). Greybeards like me (I started using emacs in mid-eighties) used it for years before there was a truly viable graphical mode. Terminal mode is still faster, and with a properly-configured terminal (or emulator) the fontifying ("faces") are just as effective. It's the "always-works" mode for emacs :-) Love the channel, keep on keepin' on :-)

    • @micahrufsvold
      @micahrufsvold 2 ปีที่แล้ว +3

      All hail the Greybeards!

    • @naqdimuhammad
      @naqdimuhammad 2 ปีที่แล้ว

      Love you greybeards but just as a note there is this mode called TRAMP that allows you to modify remote files in an Emacs buffer.

    • @backender
      @backender ปีที่แล้ว +1

      Well, I must admit, terminal frontend is laggish if you have terminal (iTerm) fullscreen open and fontsize 10 which gives you 116+ rows and probably 200+ columns of text emacs must recalculate. I'm telling of course about Doom or Spacemacs whatever, and even if using very limited set of features on. But. I have all the world's power sitting in tmux+emacs, and the only one other app I have opened is Chrome :) Greybeards += 1

    • @eduardourias8379
      @eduardourias8379 ปีที่แล้ว

      100%. Plus all my dev interaction is always inside tmux which is far more worth than any of the GUI features for me.

    • @ZenoLee0
      @ZenoLee0 9 หลายเดือนก่อน +1

      Running terminal-mode doom emacs in tmux with EVIL mode? Talk about playing Russian roulette with key bindings. I dare you to go one step further and run vim within terminal emulator.

  • @learningbird9940
    @learningbird9940 2 ปีที่แล้ว +89

    Derek, Derek...it is 2 years after you started with Emacs that you explain these very important features, that many of us never heard of???
    Time for you to rebuild a deep, complete, 8 or 10 part tutorial on Doom Emacs!

    • @caesarxinsanium4008
      @caesarxinsanium4008 2 ปีที่แล้ว +7

      this this THIS

    • @skycandy_806
      @skycandy_806 2 ปีที่แล้ว +6

      series for doom emacs would be AMAZING

    • @paarthjuneja3707
      @paarthjuneja3707 2 ปีที่แล้ว +3

      This. The way he explains stuff is amazing. I learn a ton through him.

  • @sebaszwarc
    @sebaszwarc ปีที่แล้ว +5

    I don't consider not running server as mistake. Seriously, fighting about 2 seconds launchtime?

  • @thingsiplay
    @thingsiplay 2 ปีที่แล้ว +55

    The right way to use Emacs is to forget everything you learned about Linux and make Emacs to your operating system.

    • @night_h4nter
      @night_h4nter 2 ปีที่แล้ว +1

      It's more about the interfaces, not the system underneath them.

    • @fgtdjkg
      @fgtdjkg 2 ปีที่แล้ว +3

      That's a bad idea. Emacs can't be better than native OS utilities. For example, emacs terminal is awfully slow, even vterm.

    • @exnihilonihilfit6316
      @exnihilonihilfit6316 2 ปีที่แล้ว +4

      @@fgtdjkg You shouldn't take joking, bull$hit statements like that so seriously...

  • @jatufin
    @jatufin 2 ปีที่แล้ว +12

    I've been using Emacs some 30 years. At last activated the daemon after watching the video :D Better late than ever, I guess...

  • @isaacdavid2491
    @isaacdavid2491 ปีที่แล้ว +5

    Evil mode is a HUGE mistake new emacs users make. Learn to properly type regular emacs keybindings _with both hands_ and you'll see how good and ergonomic they are. No need for modal madness

  • @hansdampf2284
    @hansdampf2284 ปีที่แล้ว +4

    The terminal version is great for when you have a development server and you only can ssh into it.
    I use this all the time and it feels like having a proper desktop app

  • @naumanahmad8022
    @naumanahmad8022 2 ปีที่แล้ว +20

    I was a vim user for quite some time but learned about doom emacs from DT when you started posting about it about a year ago. Had a rough start but now that I've got the hang of it It's awesome. Your videos were really helpful then to get me started and now I rarely use anything else. Everything except browsing and media is now emacs for me and rarely use terminal as well. Emacs (Doom) fulfills like 80% of my workstation needs

    • @williamfish1407
      @williamfish1407 2 ปีที่แล้ว

      So a bunch of stuff I struggled with was a change of leader key, some vim targets and verbs that I didn't know how to port over and getting search results into a quickfix. I was super impressed with the vim emulation. Assuming you can cfdo, etc

    • @redcoat4348
      @redcoat4348 ปีที่แล้ว

      You're like the exact guy that luke smith talked about as the reason that he wont learn emacs lol

  • @areg7182
    @areg7182 2 ปีที่แล้ว +18

    Small correction: SPC . is not dired, it's an ivy prompt

    • @AmirHosseinHonardust
      @AmirHosseinHonardust 2 ปีที่แล้ว

      oh good god! I always suspected that and was weirded out when it didn't act like I thought it was supposed to!

  • @diogogf9754
    @diogogf9754 2 ปีที่แล้ว +9

    I started using emacs yesterday, great timing to upload this video!

    • @exnihilonihilfit6316
      @exnihilonihilfit6316 2 ปีที่แล้ว

      You're gonna quit it tomorrow, with a lot of wasted time (life) behind you …

  • @userx9166
    @userx9166 2 ปีที่แล้ว +1

    Hej man...just want to say...I've been a vim user for a long time..and since your first doom emacs video..I got in love with it...and now it is basically my windows manager kkkk I can only thank you for the amazing content! ^^

  • @webdavis
    @webdavis ปีที่แล้ว +2

    I’ve been using Vim for 12ish years now. Over the past year I’ve gotten into Obsidian and also iOS development so I haven’t used vim/neovim a ton lately. About to make a pivot back to non-iso development and I’m ready for something new. I’m going to give this a shot. Thanks for the video.

  • @0x007A
    @0x007A 2 ปีที่แล้ว +7

    Emacs is GNU Hurd but Richard Stallman refuses to acknowledge it. ;-)

  • @hughdahand5711
    @hughdahand5711 2 ปีที่แล้ว +11

    The biggest rookie mistake I made was expecting to get any work done. It's way to complicated for my dumbass

    • @TheSaif78
      @TheSaif78 2 ปีที่แล้ว

      if it aint facts

  • @AmirHosseinHonardust
    @AmirHosseinHonardust 2 ปีที่แล้ว +2

    Thanks DT! After 6 months of Emacs usage, I reached the same conclusion that first impression of Emacs is not doing it justice. It's like opening up xmonad, and tinkering with it for 10 minutes, and decide that it cannot do much. It just doesn't make any sense.

  • @matejskulsky5746
    @matejskulsky5746 11 หลายเดือนก่อน +4

    You had me in the last part. I'm switching to emacs because of terminal side. I'm switching from vs-code because of option ssh-ing to my machine and have just one IDE.
    (on site I'd use vs-code, ssh = nano (simple for small changes, annoying for complex changes))
    I'm glad you mentioned that it is fine for tty only access.

  • @modrobert
    @modrobert 2 ปีที่แล้ว +3

    Good tips, haven't used Emacs much. The terminal in the example with running process is not useless though, pressing ctrl-z and then typing 'bg' will set it free.

  • @distant6606
    @distant6606 2 ปีที่แล้ว +1

    hey dt!really nice and helpful video, being a new emacs user myself.keep it up

  • @simonced
    @simonced 2 ปีที่แล้ว +18

    In many of your videos, I see you type the full path for programs that you have aliases for.
    At least in bash, you can prefix the program name with \ and it'll run the non alias command ;)

    • @tralphstreet
      @tralphstreet ปีที่แล้ว +4

      You can also use the "command" command, to run the actual command instead of the alias. Example: "command ls".

    • @MH_VOID
      @MH_VOID ปีที่แล้ว +2

      In ZSH, backslash escaping used to work, but then it stopped and now I just do for example `@ cat`, where I have
      ```
      @ () {
      "$(where "$1" | tail -n 1)" "$@"
      }
      ``` defined in my .zshrc
      You telling me I should replace the where-tailing with `command`?

  • @kdemetter
    @kdemetter 2 ปีที่แล้ว +24

    I can of have a weird masochistic love-hate relationship with emacs. I'll be drawn to using it for a while as my main editor, but then I'll get frustrated because I'm not good at using it. And then I'll be drawn to it again. Maybe I need to see a therapist.
    Whereas for Vim, we kind of have an understanding: used for limited editing , no fancy keystrokes, save and quite before anything serious might happen. Not as romantic but it works

    • @exnihilonihilfit6316
      @exnihilonihilfit6316 2 ปีที่แล้ว

      You should have been using nano instead of vim. You don't require the latter for kid stuff like that. Always use the simplest tools you can afford to use for jobs, otherwise you're losing precious time learning what you never needed to learn. And let's not even start about Emacs ...

    • @kdemetter
      @kdemetter 2 ปีที่แล้ว +1

      @@exnihilonihilfit6316 No, because vim works which better from an ssh client than nano does, and I don't have to worry about installing it first, as it's on every server.
      And really it's not hard to use at all when you stick to the basics. Emacs is quite a different matter though, I agree

  • @tater2017
    @tater2017 2 ปีที่แล้ว +1

    Very informative, thank you!

  • @masterofdizzzaster
    @masterofdizzzaster ปีที่แล้ว +1

    Sometimes i feel like the world sucks, you know? But man, at least i can watch DT, and that makes me feel nice, sincerely. Thanks man, i hope you will continue doing what you are doing for decades to come.

  • @ViniciusProvenzano
    @ViniciusProvenzano 2 ปีที่แล้ว +1

    Your best video in a long time! Great content!

  • @GrigoNiko
    @GrigoNiko 2 ปีที่แล้ว +16

    Trying using emacs as a terminal app, thinking it's more "true way" was my sin. And also the reason for me to quit. Thanks, Derek. I guess, I give it another try.

    • @fgtdjkg
      @fgtdjkg 2 ปีที่แล้ว +1

      Can't agree. I use emacs in terminal for more than a year and I like it. I launch daemon on my server and then ssh in to it and use emacsclient, can't do this with gui. I don't like Tramp by the way

    • @BurgerKingHarkinian
      @BurgerKingHarkinian 2 ปีที่แล้ว +3

      @@fgtdjkg why tf did you have to add the completely irrelevant note to the end of your comment?

    • @fgtdjkg
      @fgtdjkg 2 ปีที่แล้ว +1

      @@BurgerKingHarkinian don't confuse TRAMP with Donald Trump

    • @BurgerKingHarkinian
      @BurgerKingHarkinian 2 ปีที่แล้ว +3

      @@fgtdjkg yeah I realized my mistake after further scrolling through the comments. My bad. lol

    • @GrigoNiko
      @GrigoNiko 2 ปีที่แล้ว +1

      @@fgtdjkg I meant it from inexperienced user's perspective. Have you had any experience with GNU/Emacs or its forks before the point you've decided to run your text editor on remote machine?

  • @miscibi
    @miscibi ปีที่แล้ว +1

    beautiful video. thank you!

  • @Andrath
    @Andrath ปีที่แล้ว +1

    Another tip, In evil-mode, Ctrl-Z will toggle evil-mode on and off, handy if you are running ssh in a vterm, and you have to edit a file remotely with vim/neovim

  • @AliBigdeli
    @AliBigdeli ปีที่แล้ว +1

    Thanks, DT, I've started with doom emacs for two weeks, but still, I think VS code with vim extension is good enough for my work

  • @carriagereturned3974
    @carriagereturned3974 ปีที่แล้ว

    thanx for explanations

  • @user-xu9zx9fd7n
    @user-xu9zx9fd7n 2 ปีที่แล้ว +9

    I config emacs with more than 300 package with 1 second to load ❤ it is based in one guy i dont know his name for now, i think emacs with lisp better than neovim and lua and less just now i need to config eshell

    • @martinvandenbroek2532
      @martinvandenbroek2532 2 ปีที่แล้ว

      Do you mean Protesilaos Stavrou ?

    • @reo101
      @reo101 2 ปีที่แล้ว

      Neovim with LuaJIT is leagues faster than plain Elisp. (gccmacs is another beast)

  • @Chris-ip8uv
    @Chris-ip8uv 2 ปีที่แล้ว +4

    Jeez DT, I can't believe it was 2 years ago you did that. Back then, I thought you were nuts. Of course, I still do ;)

  • @retropixel6801
    @retropixel6801 ปีที่แล้ว +1

    I'd just like to interject for a moment. What you're refering to as Emacs, is in fact, GNU/Emacs, or as I've recently taken to calling it, GNU plus Emacs. Emacs is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
    Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Emacs, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.
    There really is an Emacs, and these people are using it, but it is just a part of the system they use. Emacs is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Emacs is normally used in combination with the GNU operating system: the whole system is basically GNU with Emacs added, or GNU/Emacs. All the so-called Emacs distributions are really distributions of GNU/Emacs!

  • @Amike
    @Amike 2 ปีที่แล้ว

    I've tried emacs a couple of times, and I have it install and configured, but I'm so used to using ranger as my file manager and opening terminals for everything that I can't seem to ever get use to it

  • @jimlee7570
    @jimlee7570 ปีที่แล้ว +1

    The 'emacsclient' thing I discovered quite by accident not long ago. That's when I realized that I was probably doing some of this stuff in an inefficient way. Since then I started studying Emacs a little more - now I consider myself a Vim refugee who now uses emacs exclusively. I still like my Vim keybindings but, hey, that's what Evil mode is for, right? Other than that, you'll have to pry emacs from my cold, dead hands...

  • @kronikpillow
    @kronikpillow 2 ปีที่แล้ว

    when i use doom-emacs, and enter org-mode, and do a * for the first header ... i just see a star after hitting the tab, it doesn't convert to that symbol that i see in DT's video ... what am i missing?

  • @stiljohny
    @stiljohny 2 ปีที่แล้ว +4

    hey DT, did you know if you have aliases of commands you can run those commands ignoring he preconfigured alias
    in your case you can run `\emacs` and that will run whatever your system things emacs is ignoring the alias ;)

  • @Chr0n0s38
    @Chr0n0s38 2 ปีที่แล้ว +4

    In all fairness, emacsclient has it's issues. I can't tell you how many times I've tried to use the daemon mode just to have it wind up unable to exit cleanly does to recentf not responding, delaying my system's shutdown by 90s. This is much longer than just the time it takes to start up a fresh emacs session multiple times in the day.

  • @xangelux
    @xangelux ปีที่แล้ว +1

    You can execute commands prefixing with backslash so that bash/zsh doesn’t use alias

  • @machman23
    @machman23 2 ปีที่แล้ว

    I had not heard of starting emacs daemon before. GUI emacs opens just fine without starting the daemon first. I guess the daemon opens when emacs is launched? Either way, if you launch daemon first then the client it will take about the same time, I assume. I am way used to GNU emacs now but may try Doom at some point. I am a happy bunny with the way emacs runs on my setup and always expanding the knowledge and packages. Thank-you DT

  • @spacechannelfiver
    @spacechannelfiver 2 ปีที่แล้ว +24

    Emacs is a reasonable Operating System, it just needs a good text editor.

    • @casenc
      @casenc 2 ปีที่แล้ว +4

      Like, say, VIM?

    • @lupuscanis4370
      @lupuscanis4370 2 ปีที่แล้ว

      it already has vim, is called evil

    • @fgtdjkg
      @fgtdjkg 2 ปีที่แล้ว +1

      Emacs has a very good text editor, it can do everything vim can and more

  • @Zakaros1000
    @Zakaros1000 2 ปีที่แล้ว

    Good advises! ! !

  • @longhoacaophuc8293
    @longhoacaophuc8293 2 ปีที่แล้ว

    As you mention the terminal version, how is using it compared to using vim?

    • @fgtdjkg
      @fgtdjkg 2 ปีที่แล้ว

      The same. Pluss you have magit and have access to the same session if using daemon. One drawback is that to use emacs in terminal you'll need to tweak it much more than vim. Once done the experience is the same. I use emacs in terminal on daily basis for more than two years

  • @enno1162
    @enno1162 2 ปีที่แล้ว

    alright dt, but HOW DO I SET UP A JAVA DEVELOPMENT EVIRONMENT IN EMACS???? I am new to emacs and doom emacs, I tried the (java +meghanada) and didn't like it so I wanted to set up java +lsp but my god is it confusing when normal documentation for how to set it up is for vanilla emacs and so the confusion is real when you want to do for doom emacs...

  • @H4KnSL4K
    @H4KnSL4K 2 ปีที่แล้ว +1

    Re: Opening emacs in the terminal: If you're running emacs-nox under gnu screen (or tmux), it's quite natural to run emacs in the terminal...

  • @overclucker
    @overclucker 2 ปีที่แล้ว +1

    I use emacs -nw -Q when I am working as the root user.
    Emacs is capable of escalating to root to open files, which sometimes I do, but I wouldn't recommend using it because of emacs being open by design.

  • @zfekete74
    @zfekete74 2 ปีที่แล้ว +2

    In my server environment I used to use emacs in terminal mode. There is no X server, so why not.
    However I recommend to use the program jed in this case. It's kind of neat light emacs -nw clone.

    • @fgtdjkg
      @fgtdjkg 2 ปีที่แล้ว

      Agree. I always use emacs in terminal and it's just fine. I launch daemon on my server and then ssh to it

  • @Kisamefishfry
    @Kisamefishfry 2 หลายเดือนก่อน

    I used to code in standard IDEs then in my masters I had to start SSHing into a lot of systems. I picked up Emacs, and it feels wrong to have a standalone window for it. Is it user friendly? Probably not, but damn is it smooth.

  • @muddyexport5639
    @muddyexport5639 2 ปีที่แล้ว +1

    Thanks!

  • @SApcProSergijAleksovski
    @SApcProSergijAleksovski 2 ปีที่แล้ว

    Wow, nice Mirror's Edge wallpaper 🏃‍♀️

  • @eduardoarandah9990
    @eduardoarandah9990 ปีที่แล้ว

    DT, I tried creating a vim mapping in eMacs and gave up. It’s so obscure

  • @SlyPearTree
    @SlyPearTree 2 ปีที่แล้ว +5

    Real power users use cat > file

    • @downbelxw
      @downbelxw 2 ปีที่แล้ว

      Efficiency at its very best

  • @martinmaciaszczak557
    @martinmaciaszczak557 ปีที่แล้ว

    What is your window manager?

  • @artembass9535
    @artembass9535 2 ปีที่แล้ว

    How to setup command hints in terminal ?

  • @ghsinfosec
    @ghsinfosec 2 ปีที่แล้ว +8

    The biggest mistake is using emacs instead of vim! I'm only kidding, great stuff DT! I don't use emacs much, but you've made it appealing. Keep it up man!

  • @midchan
    @midchan ปีที่แล้ว

    I had no idea that you could launch an Emacs daemon! That's so cool!

  • @SenthilBabuji
    @SenthilBabuji 2 ปีที่แล้ว +6

    You could give an empty string for alternate editor which will start Emacs server if not already started and will connect the client to it.

  • @mohammedalbatati5529
    @mohammedalbatati5529 2 ปีที่แล้ว

    Thanks DT,
    I was doing it wrong the past three days since I was doing emacs from the terminal and I was really surprised that several things was not working well.
    I’m a vim user trying doom emacs for the first time and found org mode to be mind blowing feature that I started using straight away, slowly working my way to other emacs features 👍

  • @Ky0JRDenny
    @Ky0JRDenny 2 ปีที่แล้ว

    Hey DT, maybe you can include the shortcut on video

  • @shriram5494
    @shriram5494 3 หลายเดือนก่อน

    I use the terminal version of emacs for editing files which only root has permissions to edit
    Running sudo emacs graphically does not load my init.el

  • @syrefaen
    @syrefaen 2 ปีที่แล้ว

    Vim is nice and so is Geany too. If I try out emacs again I won't do the same the same mistake, with using terminal and not gui version :D

  • @KereellOlorin
    @KereellOlorin ปีที่แล้ว

    I can't get correct font antialiasing and hinting in emacs gui under wayland/sway. So in alacritty emacs -nw looks much better.

  • @laughingvampire7555
    @laughingvampire7555 2 ปีที่แล้ว

    if all programs would work with a client-server application then window management could be done by the window manager

  • @draosf
    @draosf 2 ปีที่แล้ว +1

    I actually moved to doom emacs, thanks to DT of course. To be honest I was wondering why my emacs linting for Rust is a bit slow, probably that's why.
    I would appreciate it if you do Rust configuration tutorial, and I couldn't get font ligatures to work well, still have these weird characters, Nerd fonts on my OS, using +fira flag didn't solve it, tried to `M-x package install` `fira-code-mode` and I got "wrong argument number error".
    Still learning, but I already love it.

    • @06kellyjac
      @06kellyjac 2 ปีที่แล้ว +1

      It is also just generally a bit slow to run rust linting because its got to work out all the ownership etc.
      Also it only runs when the file saves which gives an increased impression of lag.
      For getting it to work it should be as simple as setting up rustup so rust-analyzer is in your path and uncommenting the "rust +lsp line" in the doom config

    • @draosf
      @draosf 2 ปีที่แล้ว

      @@06kellyjac Lovely rust community. I actually did all that, but still, there is some sort of delay, specially with big projects, it takes to seconds to catch a syntax error, two seconds to remove the error of corrected. Mostly I did something wrong somewhere.

  • @johnwpierce3
    @johnwpierce3 2 ปีที่แล้ว

    I do use emacs/evil, but without graphical compiled in. I have no desire to surf the web, navigate my fs, or look at my photo library using emacs.

  • @marcello4258
    @marcello4258 2 ปีที่แล้ว

    A terminal emulator, at the end, is also a GUI application. So why would anyone use emacs in a terminal?

  • @tireseas
    @tireseas 2 ปีที่แล้ว +14

    Emacs is a fantastic OS, not so sure about it's vi port though.

    • @dakata2416
      @dakata2416 2 ปีที่แล้ว +4

      It's better than GNU/Hurd I'll give you that.

  • @logangraham2956
    @logangraham2956 ปีที่แล้ว

    sorry, still going to do vim or vscodium for graphical.
    I don't need my text editor to do all this extra stuff, i just need it to edit text and do that single task well.
    with all these extra bells and whistles and what not that emacs has it just becomes cumbersome to use as just a text editor.

  • @JaxxedNesmith
    @JaxxedNesmith ปีที่แล้ว

    A video on emacs on xorgless wayland works would be handy

  • @zukxxxx0
    @zukxxxx0 ปีที่แล้ว +1

    Learn linux at the same time do we need to learn another app that acts as an OS inside an OS I feel coggy in this case

    • @nickbernstein
      @nickbernstein 2 หลายเดือนก่อน

      If the goal is to learn Linux, learn Linux first. If the goal is programming, writing, etc - learning emacs/both is fine, but may be more work.

  • @BulbaWarrior
    @BulbaWarrior 2 ปีที่แล้ว

    Is it possible to run emacs server on a tty-only machine and then connect to it using a gui emacs client?

    • @yorik9845
      @yorik9845 2 ปีที่แล้ว

      Maybe just launch emacs in terminal mode ?

    • @martinvandenbroek2532
      @martinvandenbroek2532 2 ปีที่แล้ว

      The client server concept of emacs has nothing to do with networking. Server and client run on the same machine. I think Unix Domain Sockets are used for the communication between client processes and server process.

  • @0x007A
    @0x007A 2 ปีที่แล้ว +2

    When will DTOS boot directly into Emacs without any DE or WM?

  • @talvisota1939
    @talvisota1939 7 หลายเดือนก่อน

    Been using emacs 30 years, so far haven't seen point for this server arrangement...

  • @TheLinuxCast
    @TheLinuxCast 2 ปีที่แล้ว +2

    IDK if this is the caae for other people, but in my config, iBuffer and vterm aren't enable by default.

    • @fgtdjkg
      @fgtdjkg 2 ปีที่แล้ว

      That's true. You have to install vterm

    • @DistroTube
      @DistroTube  2 ปีที่แล้ว

      If using Doom Emacs, go into the init.el and find a section headed with ':term' And uncomment vterm. Uncomment eshell too if you want to play with it. Then run a doom sync to install those new plugins. The very first time you launch vterm, it will have to compile (takes a few seconds).

    • @DistroTube
      @DistroTube  2 ปีที่แล้ว

      Also, in your init.el, look for a section heading ':emacs' and look for a line for ibuffer. I have mine set as (ibuffer +icons) which will give you some nifty icon fonts inside ibuffer.

  • @hansdampf2284
    @hansdampf2284 2 ปีที่แล้ว +1

    now I know this is kind of special, what I find offputting on emacs is, that I can not escalate emacs to have root rights inside from emacs.
    Let me elaborate.
    In a normal use case for me, I use vim for editing files on my system (not in home folder), say in /etc. So normally I do 'sudo vim /etc/whatever.conf. Sometimes I forget the sudo of course, so I close vim and do sudo !! instead.
    So, how do you do that on emacs with emacsclient? I start it up with emacsclient, then navigate to the file with the internal browser, notice I need root rights, than run sudo emacsclient (and have this stupid terminal window next to the emacs window again), then navigate to the file with the internal browser again?

    • @mynewrandomhandle
      @mynewrandomhandle 2 ปีที่แล้ว +2

      You can use tramp to elevate. The normal command name used is "sudired". This works for me: (defun sudired ()
      (interactive)
      (dired "/sudo::/"))

    • @fgtdjkg
      @fgtdjkg 2 ปีที่แล้ว

      type 'sudo emacs -nw'

    • @DistroTube
      @DistroTube  2 ปีที่แล้ว +4

      Doom Emacs has some custom functions built into it:
      sudo-find-file (SPC f u) - opens the find-file prompt as root
      sudo-this-file (SPC f U) - opens your current file as root
      sudo-save-buffer (SPC b u) - saves current file as root

    • @hansdampf2284
      @hansdampf2284 2 ปีที่แล้ว

      @@fgtdjkg then it’s slow again

    • @fgtdjkg
      @fgtdjkg 2 ปีที่แล้ว

      @@hansdampf2284 emacs -q will help

  • @illiasukonnik9966
    @illiasukonnik9966 6 หลายเดือนก่อน

    I don't know, startup time never bothered me, I just don't close it ))

  • @tobykelsey4459
    @tobykelsey4459 ปีที่แล้ว

    So rather than launch standalone emacs which take 1.7 seconds, you launch emacs-deamon which takes 1.6 seconds and then launch the client which takes ~0.5 seconds. Makes complete sense. Who needs a fast and responsive editor anyway? Not emacs users clearly. It's obviously much better to have to parse and interpret untyped code with every editor command then use fast compiled code. Also much better to emulate some features of a window manager within emacs than used a dedicated program designed for the distro/environment. It looks like you also have to use emacs' idea of a terminal rather than a standard terminal emulator to iter-operate within the emacs "system". You have the added bonus of juggling interacting configs for multiple distinct tasks within one programming environment rather than logically separating them.
    The Unix/Linux philosophy: Write a separate program for each specific task and transfer data between them will well-defined interfaces.
    Lispitis: The compulsion to rewrite every program in a slow untyped interpreted language with non-lexical scoping and no interfaces. Occasionally afflicts novice coders. Also see "spaghetti code".

  • @nikolayhidalgodiaz9463
    @nikolayhidalgodiaz9463 2 ปีที่แล้ว +7

    All this GUI shugar is lost in remote ssh sessions. I prefer terminal version, which works the same way regardless of is it local or not.
    By the way I find terminal version of emacs is still great.

    • @aleksandrG
      @aleksandrG 2 ปีที่แล้ว +5

      I use eshell and TRAMP for remote access

    • @lupuscanis4370
      @lupuscanis4370 2 ปีที่แล้ว +4

      you can always connect to remote emacs server from the GUI

    • @nikolayhidalgodiaz9463
      @nikolayhidalgodiaz9463 2 ปีที่แล้ว +1

      Wow thank you fellows, some promising tips!

  • @thengakola6217
    @thengakola6217 2 ปีที่แล้ว +1

    1:01 and read the title again lmfao

  • @casperes0912
    @casperes0912 2 ปีที่แล้ว +2

    Why would I want to run emacs though? I already have an operating system installed, and there's a pull request to get a kitchen sink in Firefox so I don't need that either

    • @nickbernstein
      @nickbernstein 2 หลายเดือนก่อน

      - universal text-based interfacd
      - universal keybindings
      Think of it as a "shell" for everything - email, web, irc, whatever.

  • @laughingvampire7555
    @laughingvampire7555 ปีที่แล้ว

    terminal emacs can replace the windowing of tmux

  • @GeorgWilde
    @GeorgWilde ปีที่แล้ว

    I need to watch more videos of people using emacs and rambling.

  • @debasishraychawdhuri
    @debasishraychawdhuri ปีที่แล้ว

    I don't understand why people worry about the fact that it take two seconds to load. It's just two seconds. I don't run the server because I don't always use emacs and I don't want it to consume memory when I am not using it. I am perfectly fine if it takes two seconds to load, because it is just two freaking seconds.

  • @iliyandettyilievi6572
    @iliyandettyilievi6572 2 ปีที่แล้ว +1

    Hi , Dt i know it's not related , but today i've watched a youtuber who have been managed to corrupt his motherboard bios (but he dosn';t know) with windows 11 ; I thing you could make one more video how dangerous windows 11 is , because of the tmp module and many other things ; I am msging you because i don't want people to destroy their hardware with windows 11 , but i don't have the voice to cry it out. Please Dt do somthing !

  • @derodomtommy3716
    @derodomtommy3716 2 ปีที่แล้ว +1

    Glad to see a great illustration that emacs is really an operating system with an ok text editor tacked on

  • @guillermomoreira5601
    @guillermomoreira5601 2 ปีที่แล้ว

    Is that Angels and Airways in the back?

  • @aarohgokhale8832
    @aarohgokhale8832 ปีที่แล้ว

    On a rather fast computer (0.7-0.8 second load time on doom emacs) the daemon doesn't really do much in terms of getting a faster launch, but it takes up 180 MB of memory just idly. This seems wasteful.
    EDIT: I was WRONG!!! I don't know what was up on that day, but today I tried daemonizing emacs, and it truly does make a difference! Not just in the launch time, but also in the performance.

  • @user-xu9zx9fd7n
    @user-xu9zx9fd7n 2 ปีที่แล้ว +1

    Using emacs in tty with just emacs

  • @matejskulsky5746
    @matejskulsky5746 11 หลายเดือนก่อน +1

    1.7s to boot is slow? Not bad for an OS in my opinion.

  • @Tn5421Me
    @Tn5421Me 2 ปีที่แล้ว +1

    I'm about to learn I'm screwing up in Emacs aren't I!?

  • @kmrkgo
    @kmrkgo 11 หลายเดือนก่อน

    Stay in the terminal all the time , this habit saved me from many meaningless WARs.

  • @zolaarczakle
    @zolaarczakle 2 ปีที่แล้ว +2

    Never heard of the emacs daemon. I always use it in the terminal mostly to edit config files and I never noticed it was slow.

    • @fgtdjkg
      @fgtdjkg 2 ปีที่แล้ว +1

      Just install some packages to your emacs config file and you'll notice the difference

  • @abtxu
    @abtxu 6 หลายเดือนก่อน

    Summary:
    1 Use Emacs server to speed up lauching Emacs
    2 Use dired
    3 Use Emacs gui, not termial emacs

  • @Pim-vdb
    @Pim-vdb 4 หลายเดือนก่อน

    Totaal noob here. Never heard of eMacs. Got this vid recommended. But I don’t understand what eMacs actually is. Is it a text editor or I’m a interpreting wrong. I’m in it so feel free to get technical (Sorry eng not native language)

    • @parthenocarpySA
      @parthenocarpySA 4 หลายเดือนก่อน

      If you typed this exactly into chatgpt you'd have your answer

  • @kakarroto007
    @kakarroto007 2 ปีที่แล้ว +1

    Literally my favorite video on the internet is "Joraro Closes Vim". It's still the reason to this day why I don't mess with it.

  • @mroh69
    @mroh69 2 ปีที่แล้ว

    Eli Zaretskii said in help-gnu-emacs:
    "You are not supposed to start Emacs more than once in a lifetime, so
    the startup time shouldn't matter at all." ;)

  • @s1lentssh
    @s1lentssh 2 ปีที่แล้ว +6

    Hello, DT, thanks for your videos!
    Despite of you uploaded video explaining why emacs isn't bloated, i still think it takes too much responsibilities inside itself.
    I think that tmux+pure vim/kakoune fits into unix philosophy a bit better (btw, thanks for kakoune video)
    Emacs is good, but it's really os inside os, and when you using it means you not using all good alternatives

    • @felipe5195
      @felipe5195 2 ปีที่แล้ว +2

      True to that

  • @Shinobi99X
    @Shinobi99X 2 ปีที่แล้ว

    Alrighty then, I am exactly THAT new Emacs user :s

  • @noname_hacke_9747
    @noname_hacke_9747 2 ปีที่แล้ว

    BTW I use vim 'ND arch

  • @marcello4258
    @marcello4258 2 ปีที่แล้ว

    imagine there are people who use vscode in a browser (electron) or atom. I think to compare emacs with vim is kinda dumb tbh.. it is quite the opposite