Hi Prot, your videos about Emacs built-in packages are extremely helpful, I liked them all. I would love to see a video about "tab-bar" and "project.el" so that I can drop persp-mode and projectile to use built-in emacs functions.
Hi, I have questions! In the register example, does with-eval-after-load set up some sort of an asynchronous listener for savehist ? This would mean if I happen to manually load savehist at some point, it will trigger the add-to-list. Is this the case ? Or is it like an if statement which only checks once (when it is configuring the register package) if savehist is already loaded. If not, the add-to-list is never evaluated. Sorry, use-package can be so confusing at times.
Note that the with-eval-after-load is not specific to use-package. It is ordinary Elisp that can be used anywhere. As for what it does, it behaves as a listener.
I do not use it because I prefer 'setq' everywhere. Knowing the technicalities of what a "user option" can do is a higher bar than just having every variable configured uniformly.
I want to use the latest version of org and org-roam. I remember configuring them properly with use-package was so hard! And in the end it worked by fluke. Any tips about configuring org-roam startup ? And I know you use denote (duh...), but I am wondering if you might have some tips anyway.
Why do you need the latest version of Org for this? I just checked org-roam.el and it depends on Org 9.4. Anyway, on my end using the following installed org-roam as expected: (use-package org-roam :ensure t)
@@protesilaos Hm. It might have something to do with me using an older Debian install. I think it comes with an older org by default. Not sure though. Thanks for going through all that hassle for troubleshooting a stranger's problem. Much appreciated!
I am on Debian stable since February. Before that I was using Arch for ~4 years. I made the switch because I am on a metered Internet connection and needed to economise on data consumption. With Arch, there are lots of large updates on a regular basis. Whereas Debian is basically all about security patches.
I did it because people would ask me in private how to convert my code to use-package. So it was easier for me to just rewrite everything with use-package. The end result is practically the same, though it is good to optimise around the de facto standard.
@@protesilaos Thanks for sharing. since you have a uncommon background, your insights are valuable and rare. By the way do you use magit or the vc package, since that does not affect other users, I guess you dont have the same constraint of requests from other users in this case
Because people had trouble copying from my setup and I kept receiving questions about the tweaks they would need to make. So I thought it was simpler to use the de facto standard.
I think it is a brittle setup because Emacs can block sometimes: I do not want to take any risks with my running desktop session as I may be doing a lot of important things in parallel. Plus, the setups I have seen with EXWM do not seem any better than what other tiling window managers are doing. Then we also have the issue of moving things to Wayland...
This is a great introduction, thanks so much for creating this!
And thank you for 'use-package' and all your contributions to Emacs!
OMG! it's John Wiegley
Hey Prot, Thank you for sharing this informative video. I like the fact that you mostly cover the features which are included in Emacs.
You are welcome! Indeed, Emacs has a lot to offer out-of-the-box.
Thanks for the simple and understandable explanation.
You are welcome!
Lol, by watching your tutorial recreationally, I realized this was exactly my problem of "yas-snippet" not loading after starting Emacs. Thanks! 32:40
You are welcome! Loading everything properly can be tricky.
Nice presentation! The fonts are crystal clear and easy to read on my cell phone.
Good to know!
Thank you. The sort order made things clear, just modified my configuration accordingly.❤
You are welcome!
Hi Prot, your videos about Emacs built-in packages are extremely helpful, I liked them all. I would love to see a video about "tab-bar" and "project.el" so that I can drop persp-mode and projectile to use built-in emacs functions.
Prot for President!
Hehe!
Excellent Content ..!!! Thank You for sharing .. Cheers :)
You are welcome!
thanks prot very helpful
You are welcome!
I have been searching for fresh emacs videos for over 6 months and the algorithm has never suggested this channel. I found this on the web. SMH
I guess it happens.
So, why in the installation guide of some packages they are configured to be load by :init block?
Depending on the package, that may be the right place. You need to check it on a case-by-case basis.
Thanks!
You are welcome!
Hi, I have questions! In the register example, does with-eval-after-load set up some sort of an asynchronous listener for savehist ? This would mean if I happen to manually load savehist at some point, it will trigger the add-to-list. Is this the case ? Or is it like an if statement which only checks once (when it is configuring the register package) if savehist is already loaded. If not, the add-to-list is never evaluated.
Sorry, use-package can be so confusing at times.
Note that the with-eval-after-load is not specific to use-package. It is ordinary Elisp that can be used anywhere. As for what it does, it behaves as a listener.
@@protesilaos Gotcha. And many thanks brother!
great video, thank you.
You are welcome!
I love use-package. It is syntactic sugar that makes configuring Emacs a bit sweeter.
Indeed!
Hi @prot, thanks for nice explanation! You didn't mention the :custom keyword which allows customization of package custom variables.
I do not use it because I prefer 'setq' everywhere. Knowing the technicalities of what a "user option" can do is a higher bar than just having every variable configured uniformly.
@@protesilaosI came across cases where setq does not work and you have to use the customize system
May I know what the package is that was showing the filename and context on top at 18:31
It is the 'breadcrumbs' package.
I want to use the latest version of org and org-roam. I remember configuring them properly with use-package was so hard! And in the end it worked by fluke. Any tips about configuring org-roam startup ?
And I know you use denote (duh...), but I am wondering if you might have some tips anyway.
Why do you need the latest version of Org for this? I just checked org-roam.el and it depends on Org 9.4. Anyway, on my end using the following installed org-roam as expected:
(use-package org-roam
:ensure t)
@@protesilaos Hm. It might have something to do with me using an older Debian install. I think it comes with an older org by default. Not sure though.
Thanks for going through all that hassle for troubleshooting a stranger's problem. Much appreciated!
Thank you
You are welcome!
what distro do you use, prot?
I am on Debian stable since February. Before that I was using Arch for ~4 years. I made the switch because I am on a metered Internet connection and needed to economise on data consumption. With Arch, there are lots of large updates on a regular basis. Whereas Debian is basically all about security patches.
A few months or may be a year ago you were using your own package manager similar to use-package. What made you change your mind about this?
I did it because people would ask me in private how to convert my code to use-package. So it was easier for me to just rewrite everything with use-package. The end result is practically the same, though it is good to optimise around the de facto standard.
@@protesilaos Thanks for sharing. since you have a uncommon background, your insights are valuable and rare. By the way do you use magit or the vc package, since that does not affect other users, I guess you dont have the same constraint of requests from other users in this case
I use both Magit and VC. It depends on how involved the case. I basically use VC for all the common commit and push operation; Magit for all the rest.
how do you move to next region after "narrow-to-region"?
I use my 'logos' package, which provides commands to move between "pages". It is easy to do a presentation this way.
@@protesilaos oh, i see. thanks!
What is the undo package you are using that shows a tree representation of your undo history in the minibuffer?
It is the vundo package. It builds on top of the default undo mechanism. I do use it with some of my custom tweaks though.
Very cool. I just installed it to play around with and it looks well suited for me. Thanks!
You are welcome!
Can anybody tell me which font he is using?
It is "Iosevka Comfy", which my custom design based on "Iosevka": github.com/protesilaos/iosevka-comfy
@@protesilaos Thank you so much
You are welcome!
why did you back to use `use-package` in your dotemacs (I've already check your repo just because of curiosity)?
Because people had trouble copying from my setup and I kept receiving questions about the tweaks they would need to make. So I thought it was simpler to use the de facto standard.
another question which is rather personal is that why don't you use exwm? aren't you like an emacs enthusiast? what desktop is it btw?
I think it is a brittle setup because Emacs can block sometimes: I do not want to take any risks with my running desktop session as I may be doing a lot of important things in parallel. Plus, the setups I have seen with EXWM do not seem any better than what other tiling window managers are doing. Then we also have the issue of moving things to Wayland...
👍👍
Thanks!
Έλληνας χρήστης Emacs... Νόμιζα ότι είμαι μόνος μου.
so you're saying I can delete this line on my init.el?
(require 'use-package)
Yes, plus anything you have that installs use-package.