Think of all the thoughts you can think while not thinking!
Think of all the thoughts you can think while not thinking!
It’s unclear what your talking about. Add some detail.
PM as in “project” or “product” manager?
yes
Lol
PM
Bingo!
That can be profiled, too
So stop sighing and start profiling.
server certificate verification failed. CAfile: none CRLfile: none
So it looks like the SSL cert is not trusted for some reason. That is a networking issue. It can occur for a number of reasons. I would start by searching for the certificate error + “github”. e.g.
https://stackoverflow.com/questions/35821245/github-server-certificate-verification-failed
That’s the package info (accessed via M-x elpaca-info
). What does the log say for that package (M-x elpaca-log
)?
so my question is, Is it worth it?
It’s worth more than a bunch of other people’s opinions.
What threaded applications are you using in Vim?
All in on what?
What evidence do you have for this?
But, if we’re using use-package to also manage installing the packages for us (:ensure t), then why shouldn’t it know about the autoloads already and automagically imply a :defer t by default?
Package installation and activation are two seperate concerns.
:ensure
ensures the package is isntalled if it isn’t already.
Users might want to ensure a package is installed and prefer it to be immediately required.
So, by default, we have to remember to either add :defer t or we have to remember that setting our own hooks, bindings, or commands will create autoloads for us.
I feel like you’re misunderstanding what autoloads do.
Hooks do not autoload anything.
The :commands
use-package keyword does autolaod commands.
This is useful when a package author has not provided the autoload cookie in the package for a command, or when you wish to forgo loading all of the autoloads.
I know that you can configure use-package to behave as though :defer t is set by default, but that’s just broken for packages that don’t have any autoloads.
How is it broken? There are other ways to load a package. Namely, require
.
It feels like maybe use-package is doing too many things.
It only does what you tell it to do via user options and declarations.`
but that kind of sucks because there’s no reason to load magit before I actually want to use it for anything. So, what we can do instead is to implement the project.el integration ourselves
Or (use-package project :ensure nil :defer t :config (require magit))
There are multiple ways to set this sort of thing up and use-package (which should have been named use-feature
) can be used to configure built-in features.
Either I’m a little dim or the tooling here is hard to use correctly.
Third option: You haven’t taken the time to digest the use-package manual and/or expand the macro to see what it’s doing. It’s a DSL. You have to learn it to use it effectively.
Am I the only one?
You must be. Otherwise someone would’ve written “use-package alternatives”, which has an almost searchable ring to it.
Ultimately, organization comes down to the user. Tools like use-package make it easier, but they do not guarantee it.
RGB underglow… 90s vibe
Were you alive in the 90s?
(add-variable-watcher 'autosave-toggle
#'(lambda (_ value _ _)
(if value (autosave-setup) (autosave-teardown))))
Don’t add an anonymous function. It will make it harder to remove. Better yet, implement this as a minor-mode.
(defvar autosave-delay-interval 1
"The amount of time to wait before autosaving after a change has occurred.")
(defvar autosave-exclude-buffer-list
'("COMMIT_EDITMSG" "treemacs-persist")
"List of buffers to exclude from autosaving")
(defvar autosave-immediate-save-functions-list
'(switch-to-buffer other-window windmove-up windmove-down windmove-left windmove-right next-buffer previous-buffer)
"A list of functions which trigger an immediate save")
(defvar autosave-immediate-save-hooks-list
'(mouse-leave-buffer-hook focus-out-hook)
"A list of hooks which trigger an immediate save")
These should be user options defined via defcustom
(defmacro advice-add-list (advice-list how function)
"Add list of advice to given function using the how parameter"
`(dolist (advice ,advice-list)
(advice-add advice ,how ,function)))
(defmacro advice-remove-list (advice-list function)
"Remove list of advice from given function using the how parameter"
`(dolist (advice ,advice-list)
(advice-remove advice ,function)))
(defmacro add-hooks (hook-list function)
"Add list of hooks to given function"
`(dolist (hook ,hook-list)
(add-hook hook ,function)))
(defmacro remove-hooks (hook-list function)
"Remove list of hooks from given function"
`(dolist (hook ,hook-list)
(remove-hook hook ,function)))
These should be functions instead of macros. They should also be prefixed with your package’s “namespace”.
Customize display-buffer-alist
to your liking. There is an Emacs manual section devoted to it as well as several online tutorials.
Auctex requires a :pre-build step which involves generating elisp files. If that step fails, certain parts will break. There are several ways to configure the build as well. See the various issues on the bug tracker for more info. e.g,
Long story short, they’re not being compiled. The message is just output every time. There is a thread on emacs-devel or emacs-bug archive which offers a more detailed explanation if you search there.
So a newbie just popped out
New to Emacs doesn’t mean “new to life”.
This is correct. For anyone troubleshooting Elpaca, there is a Wiki which covers this warning.
This is incorrect. The installer directly clones Elpaca. Elpaca is not hosted on any ELPA. Doing so would require an installer package to be installed by another package manager. I don’t offer support for users running multiple package managers because it creates confusion about which package manager is responsible for which package, load-path entry, etc. MELPA rejected a similar proposal for straight.el as well:
https://github.com/melpa/melpa/issues/4939
cc: /u/liesdestroyer