all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* use-package, package.el, and system packages cooperation
@ 2020-07-26 18:23 Thomas Schneider
  2020-07-26 22:50 ` Dmitry Alexandrov
  2020-08-02 10:54 ` akater
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Schneider @ 2020-07-26 18:23 UTC (permalink / raw)
  To: help-gnu-emacs

Dear list,

I’m struggling to combine use-package, package.el, and Emacs packages installed by the system package manager (e.g., apt).

I have:
- the same init.el on all machines
- various Emacs versions (≥ 25)
  (okay, the 25 is Debian oldstable and soon to be irrelevant for me, we can reasonably assume ≥26)
- various operating systems (including but not limited to: Gentoo, macOS, Debian, Fedora)
- root access on most, but not all hosts

I want:
- to install packages via the system package manager as much as possible
  This is especially important for packages such as pdf-tools, which require development headers of several libraries, but are readily installed via system packages
- not to install packages again as user, when they are already installed system-wide
- especially as dependencies
  For example, Gentoo provides AUCTeX, but not auctex-latexmk.  When I install the latter via package.el, it installs AUCTeX again, even though it’s already installed system-wide
- to continue using use-package, or something else that helps me structure my init.el
- not to download half of MELPA the first time I start Emacs on a new host
  Yes, this contradicts the (setq use-package-always-ensure t) in my init.el, because otherwise … stuff broke.  I don’t remember the details why.
- Emacs to start swiftly
- to keep what’s left of my sanity ;)

I once found a tool that registers packages installed via dpkg/apt with package.el, but it was old and didn’t work with Emacs 25 (or maybe Debian packaging changed, I don’t know).  But even if it had worked, it only would have been a solution for Debian.

I’ve begun digging through the source of use-package and package.el to make this work, but haven’t succeeded so far.  As it feels like I’m reinventing the wheel, I hope someone can point out a better solution.

For reference, this is my init.el in its current state: https://github.com/qsuscs/.dotfiles/blob/58c8954c5be370c3638c1087aa64b2ddb919934b/dot.emacs.d/init.el

Thanks for any help,
	--qsx


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-02 10:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-26 18:23 use-package, package.el, and system packages cooperation Thomas Schneider
2020-07-26 22:50 ` Dmitry Alexandrov
2020-07-27  8:18   ` tomas
2020-08-02 10:54 ` akater

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.