[-] nv-elisp@alien.top 2 points 10 months ago

so my question is, Is it worth it?

It's worth more than a bunch of other people's opinions.

[-] nv-elisp@alien.top 2 points 10 months ago

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.

[-] nv-elisp@alien.top 2 points 11 months ago

Customize display-buffer-alist to your liking. There is an Emacs manual section devoted to it as well as several online tutorials.

[-] nv-elisp@alien.top 2 points 11 months ago

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.

[-] nv-elisp@alien.top 1 points 11 months ago

So a newbie just popped out

New to Emacs doesn't mean "new to life".

[-] nv-elisp@alien.top 1 points 11 months ago

Install all-the-packages. It installs all Emacs packages, so you don't have to research or make decisions (who has time for that?). Disk space is cheap nowadays, so a few TB's of data isn't anything to worry about (who has time for that?).

[-] nv-elisp@alien.top 2 points 11 months ago

Be resourceful. Documentation, search engines, then support forums.

[-] nv-elisp@alien.top 1 points 11 months ago

Is there a way I can keep using my defined variable

https://www.gnu.org/software/emacs/manual/html_node/elisp/Backquote.html

As a side note, it would be better to set your variable like so:

(defvar my/mu4e-dir
  (cond ((my/laptop-p) "path/to/it")
      ;;etc

The way you're doing it in your example seems inverted.

[-] nv-elisp@alien.top 1 points 11 months ago

is there any guide you can point me to?

google and the search bar on this subreddit both work great

[-] nv-elisp@alien.top 1 points 11 months ago

What have you tried so far?

[-] nv-elisp@alien.top 1 points 11 months ago
Cut my lisp init pieces! 
This is my last resort!
Suffocation. No layers.
Don't give a fuck if my code signals errors!

https://www.reddit.com/r/emacs/comments/17610on/seaman_emacs_my_first_published_config/k4k0npq?context=3

What type of errors specifically are you running into that break your whole config?

view more: next ›

nv-elisp

joined 1 year ago