Skip to content

Instantly share code, notes, and snippets.

View mwolson's full-sized avatar

Mike Olson mwolson

View GitHub Profile
@mwolson
mwolson / README.md
Last active November 30, 2025 05:46
gptel-manual-complete.el

gptel-manual-complete.el

This is an example of how the existing gptel-rewrite.el file can be used to perform completion on an entire function, replacing what's already written so far in that function.

Setup

To use:

# Set policy for lid-close
sudo mkdir -p /etc/systemd/logind.conf.d
cat <<'EOF' | sudo tee /etc/systemd/logind.conf.d/10-lid-switch.conf > /dev/null
[Login]
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HandleLidSwitchExternalPower=suspend
EOF
sudo systemctl reload systemd-logind