Fix emacs gc at startup

This commit is contained in:
Marco Thomas
2021-07-29 08:45:34 +02:00
parent b71212f2b8
commit 8cd45abe6f
2 changed files with 7 additions and 3 deletions

View File

@@ -10,8 +10,7 @@
;; Set the gc threshold high initially so the init.el can just be
;; loaded in one move
(setq gc-cons-threshold most-positive-fixnum ; 2^61 bytes
gc-cons-percentage 0.6)
(setq gc-cons-threshold most-positive-fixnum) ; 2^61 bytes
;; Lower the gc threshold again afterwards
(add-hook 'emacs-startup-hook

View File

@@ -1,3 +1,8 @@
#!/bin/sh
xinput --set-prop 25 'libinput Accel Profile Enabled' 0, 1
if [ ! "$1" ]; then
echo "No device ID given ..."
exit 1
fi
xinput --set-prop $1 'libinput Accel Profile Enabled' 0, 1