DH_INSTALLEMACSEN(1)

πŸ’– DH_INSTALLEMACSEN πŸ’–

okay bestie, gather round, because this is dh_installemacsen from the Debhelper squad, and she is literally the one who files the paperwork so your little package gets recognised as an Emacs add-on. πŸ‘‘ Think of her as the group chat admin who adds everyone to the right roles. no cap.


✨ NAME ✨

dh_installemacsen β€” register an Emacs add on package 🧚


🌸 SYNOPSIS 🌸

dh_installemacsen [debhelper options] [-n] [--priority=n] [--flavor=foo]

πŸ¦‹ DESCRIPTION πŸ¦‹

so, dh_installemacsen is a debhelper program, and her whole job is installing the files that the Debian emacsen-common package uses, dropping them into your package build directories. it's giving backstage crew. πŸ’…

she also automatically generates the preinst, postinst and prerm commands you need to register a package as an Emacs add on package. those commands get added to the maintainer scripts by dh_installdeb. if you want the full lore on how that whole thing works, go read dh_installdeb(1). πŸ“–


πŸŽ€ FILES πŸŽ€

  • debian/package.emacsen-compat β€” gets installed into usr/lib/emacsen-common/packages/compat/package inside the package build directory. ✨
  • debian/package.emacsen-install β€” gets installed into usr/lib/emacsen-common/packages/install/package inside the package build directory. πŸ’œ
  • debian/package.emacsen-remove β€” gets installed into usr/lib/emacsen-common/packages/remove/package inside the package build directory. 🌈
  • debian/package.emacsen-startup β€” gets installed into etc/emacs/site-start.d/50package.el inside the package build directory. and ooh, if you want a different priority than 50, use --priority for that. πŸ“

🌟 OPTIONS 🌟

  • -n, --no-scripts β€” do not touch the postinst/prerm scripts. hands off, bestie πŸ™ˆ
  • --priority=n β€” sets the priority number of a site-start.d file. the default is 50. πŸ”₯
  • --flavor=foo β€” sets the flavor that a site-start.d file will be installed in. default is emacs, and alternatives include xemacs and emacs20. πŸ’–

πŸ’€ NOTES πŸ’€

⚠️ real talk: this command is not idempotent. you gotta call dh_prep(1) between invocations of this command. otherwise? it may cause multiple instances of the same text to be added to maintainer scripts. and like... nobody wants duplicate text in their maintainer scripts, it's giving chaos. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

  • debhelper(7)
  • "usr/share/doc/emacsen-common/debian-emacs-policy.gz"

this program is a part of debhelper. 🫢


πŸ’œ AUTHOR πŸ’œ

Joey Hess <joeyh@debian.org>


and that's the whole page, bestie!! this iconic lil manual came to you from Debhelper version 14.5ubuntu1 (yes, the source/version line), dated 2026-09-21. go forth and register those Emacs add-ons, you absolute main character. πŸ’…βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from