diff options
| author | alex <alex@pdp7.net> | 2024-09-30 20:55:04 +0200 |
|---|---|---|
| committer | alexpdp7 <alex@corcoles.net> | 2024-09-30 20:56:18 +0200 |
| commit | c6339383bc4a8b4cb5995748951b43466316978c (patch) | |
| tree | 793b61c546d892a3e8ef840f691ed75017bc8c2b | |
| parent | 7d28c598762b68c8b8b51ca5a74eb952f08e2f92 (diff) | |
Add note about pinning
| -rw-r--r-- | scripts/p7s/emacs.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/p7s/emacs.py b/scripts/p7s/emacs.py index 9eba95f9..d158afb8 100644 --- a/scripts/p7s/emacs.py +++ b/scripts/p7s/emacs.py @@ -1,5 +1,6 @@ import pathlib import subprocess +import textwrap import p7s @@ -9,3 +10,11 @@ def setup_emacs(): subprocess.run(["ln", "-s", (pathlib.Path(__file__).parent.parent.parent / "emacs" / "emacs.bash").absolute(), p7s.BASHRC_D / "emacs.bash"], check=True) (pathlib.Path.home() / ".emacs").unlink(missing_ok=True) subprocess.run(["ln", "-s", (pathlib.Path(__file__).parent.parent.parent / "emacs" / "emacs.el").absolute(), pathlib.Path.home() / ".emacs"], check=True) + + print(textwrap.dedent(""" + On Debian Bookworm, create /etc/apt/preferences.d/emacs with: + + Package: emacs-* + Pin: release a=stable-backports + Pin-Priority: 500 + """).lstrip()) |
