Prevent laptop from suspending when lid is shut /etc/systemd/logind.conf: HandleLidSwitch=ignore sudo systemctl stop systemd-logind && sudo systemctl start systemd-logind source Emacs pip install flake8 # for flycheck