From 7d666e146daba5a15320b09436389c098a459308 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 25 Jan 2019 21:36:22 +0100 Subject: [PATCH] [Misc] Set X Wait Timeout to nil only on GNU systems As it seems, setting this variable to nil causes an Windows Emacs to busy wait for input with no time delay between two cycles. This causes heavy load on the machine and a non-reacting Emacs. --- init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index acfb2c4..bdeb0cc 100644 --- a/init.el +++ b/init.el @@ -351,8 +351,10 @@ delete-trailing-lines nil x-underline-at-descent-line t search-whitespace-regexp "[ \t\r\n]+" - visual-line-fringe-indicators '(left-curly-arrow right-curly-arrow) - x-wait-for-event-timeout nil) + visual-line-fringe-indicators '(left-curly-arrow right-curly-arrow)) + +(when (memq system-type '(gnu gnu/linux gnu/kfreebsd)) + (setq x-wait-for-event-timeout nil)) (when on-windows ;; treat memory for display time ... but hey, this is Windows, memory doesn’t