A New Beginning With GNU Emacs - Configuring Emacs 01
Ғылым және технология
Configuring Emacs will be a video series where I begin with a vanilla installation of GNU Emacs and configure it into what I want. In this initial video, I will setup the elpaca package manager, evil mode (Vim-like keybindings), general.el (for setting keybindings) and which-key. I will also do some minor modifications to Org mode.
THE CONFIGS FROM THIS VIDEO SERIES:
► gitlab.com/dwt1/configuring-e...
PACKAGES INSTALLED:
► github.com/progfolio/elpaca
► github.com/emacs-evil/evil
► github.com/emacs-evil/evil-co...
► github.com/noctuid/general.el
► github.com/justbur/emacs-whic...
WANT TO SUPPORT THE CHANNEL?
💰 Patreon: / distrotube
💳 Paypal: kzread.info?even...
🛍️ Amazon: amzn.to/2RotFFi
👕 Teespring: teespring.com/stores/distrotube
DONATE CRYPTO:
💰 Bitcoin: 1Mp6ebz5bNcjNFW7XWHVht36SkiLoxPKoX
🐶 Dogecoin: D5fpRD1JRoBFPDXSBocRTp8W9uKzfwLFAu
📕 LBC: bMfA2c3zmcLxPCpyPcrykLvMhZ7A5mQuhJ
DT ON THE WEB:
🕸️ Website: distrotube.com/
📁 GitLab: gitlab.com/dwt1
🗨️ Mastodon: fosstodon.org/@distrotube
👫 Reddit: / distrotube
📽️ LBRY/Odysee: odysee.com/@DistroTube:2
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/
🎵 Tenacity: github.com/tenacityteam/tenacity
💻 VirtualBox: www.virtualbox.org/
🗒️ Doom Emacs: github.com/hlissner/doom-emacs
Your support is very much appreciated. Thanks, guys!
Пікірлер: 119
I really appreciate your doing this series DT! I've been into and out of Emacs more times than I can count. Doom is nice, but it's kind of a giant black box with 10,000 knobs. I'm working through your series, typing most things in so I'll have some recognition of them, and it just has a different vibe. Looking forward to the rest of the episodes!
Really looking forward to the rest of this series, will be binging yours and others emac videos until then! Thanks Derek
I've watched all seven episodes of the Emacs series so far, and it's truly fantastic. While I've been using Emacs for a while now, I've encountered some challenges. This series has been incredibly helpful in addressing them.
Really appreciate this playlist DT. *Finally* got rid of Doom and switched to a DIY config. I've taken inspiration from your config, and your videos have served as a great tutorial for setting up Emacs. I havent watched all of the Emacs-related videos (haven't got much time), but since I've moved away from Doom (which, by the way, I've been using for longer than you had), i feel freed. Thank you once again @DistroTube!
Thank you as a huge understatement! I always look forward to the next instalment of the how-to videos. These type vids are why I follow your content (commentary vids are ok but technical are my meat & potatoes for the learn). Keep up the good work!
Great video. Just started using Emacs/Doom Emacs. Lots of good info here to learn. Looking forward to the rest of these Emacs starting videos.
I'm coming back to Linux as my personal OS after 15 years, and I've fallen in love with Emacs after an old friend's recommendation... Now, thanks to your video, I can learn how to tailor it to my needs. The fact that is usable also in console mode is a massive bonus for me! BTW, to move between buffers in GNU Emacs it is C-x + left/right arrow. I really enjoy your videos DT, keep up the amazing educational job you are doing!
Thanks for the video. In my opinion, this is the only beginners emacs tutorial on the entire Internet. All other tutorials assume we have some previous knowledge, you assume nothing. This is one of the reasons you have 250K views and others have only 450. Good job.
Great episode Derek! Can't wait to see the next installments as I attempt to wean myself off of Doom.
Thanks a lot Derek for these awesome emacs episodes 🙏✌️🤩😍continue ..to make it looks like doom emacs and also like vscodium🎉🦄
DT's Emacs content is the best!
DT, thanks a lot! This is something incredible! 😍
a really great and friendly guide! thank you so much!
This is awesome, keep up the good work boss 🙏
It was nice to see Burg Eltz on your wallpapers. It is very famous beautiful castle in my area.
I tried to jump right into Doom Emacs because it was said to be easy to get started with. I wanted to learn it, wanted to like it, but I just couldn't get anywhere at all. The tutorials and docs and forum-threads and cheat-sheets I found all seemed to assume some experience with Emacs, or they didn't really go step-by-step, or for some reason my key-combinations didn't work the same way theirs did, or they were just hard to follow for whatever reason. I had no idea where to start and what to look for. So now I've started from scratch with this tutorial, and for the first time I feel like I can accomplish something here! This video already gave me a good idea of how this stuff works, and I finally have a basic notion of how to (eventually) achieve the configuration that got me interested in Emacs in the first place. I'll be following the rest of this playlist. Thanks!
Oh, finally DT is going for setting up Emacs! Thanks for that content I hope you will take some ideas from SystemCrafters :)
DT, you can execute a code block with C-c C-c, just hold down the Control key and hit 'c' twice. You don't have to restart emacs to execute a code block. Also, you can add a src_block, beginning and end with 'C-c C-, s' but it is better to install org-tempo and create a template for an emacs-lisp block so you don't have to type it all out each time. (require 'org-tempo) (add-to-list 'org-structure-template-alist '("m" . "src emacs-lisp")) Then, you just type '
wow, I just started learning emacs this week, and this video come on time just suit my needs I guess👍🏻 and I’m look forward editing video with emacs in the future😂
Huge tutorial, thank you.
You know I always avoid your org mode videos like the plauge, your emacs stuff too, but I watched this one. The table of contents thing is the first thing I've spotted that makes me really want to try emacs again.
@SpreadiesInSpace
Жыл бұрын
Seeing how you write for a living, it would be interesting to see you give Emacs Org mode another go.
@exnihilonihilfit6316
Жыл бұрын
-Stay in your lane- Stick to nano, man. :D
@TheLinuxCast
Жыл бұрын
@@exnihilonihilfit6316 I'm almost done with nano. Vim has been calling my name. It misses me
@muhammadaneeqasif572
Жыл бұрын
@@TheLinuxCast hi buddy, i would say that if youwould had started from helix you might be in a tough decision point right now, cz its the sweet support b/w nano and nvim , with by default lsp and all ide like things by default no conf needed and it is written in rust, may be you can try it as next video project
It's only been a week since I learned about the greatness of Emacs and started studying it, and what a coincidence it is that my teacher, Mr. DT, is making videos about it.
I love this new series on EmacsOS with e(vi)l editor
excellent video!!!! thanks!!!!
Great video.
Love your videos. There is one thing I want to let you know, emacs is able to evaluate expression directly without closing the editor. By typing C-x C-e at the end of the parentesys of a line you want to evaluate, it will run it. Thanks to this you don't have to restart it every time you had a change, and if something goes wrong you don't have to wait for it to start again to modify it. Hope to be helpful :)
@gagagero
Жыл бұрын
You can also do M-x eval-buffer or eval-defun.
@theodorealenas3171
Жыл бұрын
I love that feature! And the Vim equivalent is yy@" You could also consider !!sh for evaluating shell scripts. That's often how I list and rename files in Vim.
Thank you this is great information. I'm not familiar with the evil mode and bindings, just the GNU ones.
Emacs is LIFE. I just wish the IRS would make an emacs package already so I can send them my taxes via emacs.
Finally, i really wanted to learn how to configure emacs and make it my own but i didn't have the chance to do it, now i can. Thanks 🎉❤
You are gem sir......
When do you rename your channel to "DistroCrafters"?
@poms3559
Жыл бұрын
System Crafters will go out of business.
@marioschroers7318
Жыл бұрын
DistroMacs or EmacsTube, I suppose! 😅
@amolvaidya4740
Жыл бұрын
Or simply Dmacs
@friedrichmyers
5 ай бұрын
Yeah. It is odd seeing both the channels effectively uploading the same thing.
Considering moving from neovim to emacs. This video was so helpful thanks.
@theodorealenas3171
Жыл бұрын
I highly recommend opening Emacs and poking around to understand its architecture. You may change the way you configure everything else
Game Idea Every time he says GNU Emacs, you take a shot
instead of doing `C-x C-+` multiple times, `C-x C-+ + + + + - - - - + - - 0 ++` and so on will work until you press another key (0 to reset zoom level)
I love emacs ❤
thank you kind stranger.
Cool video
Emacs 29.1 went gold after this video and includes many improvements, use-package is now built-in. Therefore, Straight nor Elpaca is required but they do have some advantages. I am thoroughly enjoying this series. Doom Emacs abstracts things and new Emacs users may struggle to learn as a result. Learning Emacs & DIY from scratch is simply The Emacs Way. Evil is important for those with well established muscle memory for ViM keybindings. However, learning Emacs keybindings is not as terrible as it seems at first. Especially if you remap Capslock to Ctrl. Emacs keybindings work on terminal shells and in many places in Linux / macOS as well. You can always change any keybinding throughout Emacs.
EMAAAAACS LET'S GOOOOO
Nice
thanks dt =)
Great contents, would be nice to divide it in chapters if it is not much to ask for.
DT, I've been following the tutorial up to 15:00. I'm not sure how you got the screen at 15:07 to come up? I have verified that I've typed and copied everything right. Please help!
I'm here cause I heard Emacs can cure my autism.
I have returned to Linux after many years away. I’ve been aware of emacs but never tried to use it before now. I’ve had a couple of issues so far, but I’ve managed to figure out what I fat fingered and fix it. One problem that I can’t figure out is how to use the “leader” key. I think I’m supposed to press Alt+Space, but that opens up KRunner. I’d be ok using another key combination if I knew how we were naming the keys. I gather that we’re using some combination of lisp and org languages? I’m not familiar with either. At any rate, pretty cool so far and I’ll be sticking with it, even if it’s just a little at a time.
Instead of restarting emacs so many times, the whole beauty of emacs is that you can update the config without restarting. After you enter a new configuration item, just put the cursor at the end of the line and hit C-x C-e (ctrl+x ctrl+e) and it will compile that section of your config file without having to restart emacs.
This video reminds me that I actually did spend plenty of time in Emacs and I just forgot how much it was.
👏🏻👏🏻
So I followed along and did everything command for command in the video and when I reopened emacs nothing happened, elpaca didn't install anything, or at least it didn't show it on screen like DT's did, any ideas?
@paulhol6669
Жыл бұрын
Solved it. Emacs had recreated a directory in my home, so I deleted it (again) and did a killall emacs and restarted and it now behaved as in the video. (For anyone else who may run into this issue)
@impotentape7413
Жыл бұрын
@@paulhol6669 Thank you. I had the same issue.
@santiagovallejo4071
Жыл бұрын
@@paulhol6669 don't work at all, I restarted the process a few times and still don't know what happens, I have same issue
@exnihilonihilfit6316
Жыл бұрын
Same problem! Even though I deleted the emacs.d directory before beginning. I thought "WTF, what you said is gonna happen didn't happen, DT!" LOL Thanks.
@santiagovallejo4071
Жыл бұрын
I fixed the issue hahah
Hey Dt!, Do a video about Hyprland
Niiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiceeeeeeeeeeeeeeeeeee
what background/environment are you using with that header with your CPU, mem etc thats sick I want to install that
Nice video, thank you! How can I make my TAB work in the src block, it doesn't indent 🤔
😄 👌👍
Is this worth watching if I'm trying to get up and running with gnu emacs on windows?
Which wm are you using?
Such a strange IDE that emacs! Having installed it and wrote some simple common lisp code to it and nothing happens when trying to compile it.
where do i have to clone your files in to on mac ?
I had a emacs pinky last week so went back to standard Vim.
why haven't i heard any talk about use-package?
Only yesterday, getting back to my Neovim config, I realized how all these text editors are basically horrible to configure. I had used a plugin, »Neorg« as a substitute for org-agenda, as I no longer use Emacs (I've barely used Doom Emacs for six months anyway). The problem with this plugin is it tends to break often enough when nvim gets updated. Recently, it's been throwing hundreds of Lua-related warnings on startup, and I really can't be bothered resolving these. Eventually, I found a setting »conceallevel=2«, which tends to blind out most of Markdown formatting syntax. So I figured to just use this setting and go with simple Markdown files instead. I also find package managers for text editors a major pain. I remember some of the obscure stuff from Doom Emacs, but Packer in Neovim is likewise horrible. If it weren't for the cheat sheets on GitHub, I'd probably just use Nano, lol. These text editors are a bliss once configured to your liking, but the way getting there seems like a nightmare.
@heroe1486
Жыл бұрын
The lazy nvim package manager is straightforward to use, add to that Mason to manage LSP plugins and null LS to use linters/formatters as lsp and you're good to go.
@almarn
Жыл бұрын
You are just RIGHT....Use Sublime Text as an editor..perfect and uses a good IDE...the rest is just BS...endless list of config..poorly maintained plugins, always a NEW package manager...I know Emacs and Vim and Neovim there are just waste of time....Productivity is NOT linked to your editor...refactoring needs top of the line tools...Learning Emacs Lisp is useless. I was looking recently at the futur lua disaster for neovim...endless stream of extensions with logic...everywhere...like elisp for emacs vi is ok if you are doing system administration..
@sargon4307
Жыл бұрын
Dude i wanted to stay in nvim only because of neorg, im scared now
@marioschroers7318
Жыл бұрын
@@sargon4307 Can't post a screenshot here, but it keeps throwing a lot of 'file not found' errors about stuff in my system Lua directory, while I didn't change my configuration in months. I just kept updating Neovim with my regular system updates. Since I have no clue about Lua or the nuts and bolts of this plugin at all, I decided to ditch this, since it's not the first time happening by far. Of course, if you like it, feel free to use it. For me, these issues have just become too annoying to deal with, and too obscure for me to fix them.
Hello! for some reason my init.el is not loaded when I put it in .config/emacs folder, but it will load fine on .emacs.d, I know it's just a minor issue but it bugs me. I'd rather have all my config in a single folder than all over the place, do you know why that is?
Hey there Derek. I really appreciate your help on emacs. Thanks. However, all the help in config that i been doing following you video, just doesn't seem to work. I looked at the messages and it was stating that debian.el was loaded automatically. Im doing some research as to how to remove this with out messing up everything. Cheers and thanks again
cant move to linux yet. I tried this on WSL2 but it did not start elpaca, sad.
Hooooly shit org mode rules man
i just get errors now after use package evil... typed everything exactly checked 5 times...
🙏👍 The Best!ssssssdd
"Once I finish configuring, following the steps you've shown, I exit and then restart Emacs. However, contrary to what I observed in the tutorial video, an error continues to appear in the window on the right side of the interface: 'Warning (emacs): Elpaca installer version mismatch.'" Is anyone else experiencing the same issue I am, mentioned in my previous comment, after following the configuration steps in the tutorial?
Wish this was a series for **total beginners**. Lots of steps skipped over.
I wish emacs could handle container linting
@samgould8567
Жыл бұрын
Do you mean Dockerfile linting? You can use lsp-mode for that.
Honestly, I configured it from nvim.
So C-c C-, brings up what block u want to insert like src or quote and others in base emacs
But those emacs floppies take longer than the rest of the distro at 28.8. And since then I’ve been a vi guy.
just came from "Interview with an Emacs Enthusiast in 2023 [Colorized]" lol
@thcrs1
Жыл бұрын
I made it to 22 minutes. how is this real?
Somebody can help me. I got this warning Warning (Emacs): Elpaca installer version mismatch
What is emac?
Curious. Why would you use emacs at the same time as vim?
@DT >>>> NANO IS BETTER !!! PFFFTTT !!! HAHAHAH !!!!
please stop hard quitting emacs and restarting. Just evaluate the current buffer. or tangle it if you have to. One of the best features of emacs is that you can modify it and see the changes as you go, and you're missing this here.
Tooooo much attention for "evil-mode". I would advice true newbies to stick with de default key-binding. They came from the GNU readline library which is also used on the bash shell. Much help resources also assume you use the default key-bindings. So think before switching to "evil-mode". 😊
Why just don't use Neovim?
Who in the right mind thought that using Ctrl-X as a goddamn prefix was a good idea
@kaurt9954
11 ай бұрын
I thinking so
Emacs is the best IDE, vim sucks
@abdullah6569
Жыл бұрын
explain why vim sucks
@coalhater392
Жыл бұрын
As a neovim user I can confirm that vim doesn't suck.
@samgould8567
Жыл бұрын
Emacs sucks more than Vim and especially NeoVim out of the box. I say this as a hardcore and longtime user of both Vim and Emacs. Hot take: Vim is to Emacs as VSCode is to Vim. What I means is that, progressively, you end up trading some ability to configure your editor to get something nice working quickly. No editor in the current landscape is harder than Emacs to set up to match modern sensibilities. Also, nothing can hold a candle to Emacs in terms of the configurability. Calling it “configurable” is really a slap in the face of what Emacs is about - it is malleable. You can literally change any aspect of the system at runtime by redefining or reversibly modifying any function or macro in any package or core functionality. It is extremely easy to figure out what to modify, as well, because every key press has documentation as to what is happening under the hood and you can jump straight to its source definition. There are many conveniences for evaluating lisp code within Emacs, to the point where you eventually don’t even think about it when you are doing something crazy or experimental. It’s liberating and extremely addicting.
@theodorealenas3171
Жыл бұрын
Sucking is deprecated. Use deez n instead.
@linusstrang984
Жыл бұрын
If vim sucked, why is evil-mode one of the most popular packages in Emacs? I use Emacs without evil-mode, but I can assure you the ed/vi/vim/neovim family of editors would not have lasted so long without being amazing.
bad vid just quit
This guy is realy bad at Emacs. Is this a joke?
If you just want to wrtie some nice notes within Terminal move on. This is a rediculous waste of time. If i has days to do nothing but learn emacs then yeah itd be cool. This is a hobby and nothing more. VS code is superior to this anyway in the sense of ID. I just wanted to write notes in emacs rather than a GUI, guess ill stick with Vim.
@bhavyakukkar
9 ай бұрын
"hobby and nothing more"? if coding is your job this is a great investment
god dt you miss the best part about emacs emacs-eaf/emacs-application-framework
@idjdbrvvskambvvv9007
Жыл бұрын
im leaving qutebrowser emacs is now my bestfriend