el/dot-emacs.el: Fix bungled `LD_PRELOAD' hack removal in Eshell.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 8 Aug 2017 22:25:11 +0000 (23:25 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 8 Aug 2017 22:25:11 +0000 (23:25 +0100)
el/dot-emacs.el

index 8aff2b9..c24d9ec 100644 (file)
@@ -3513,9 +3513,7 @@ that character only to be normal punctuation.")
 (mdw-define-face eshell-ls-readonly (t nil))
 (mdw-define-face eshell-ls-symlink (t :foreground "cyan"))
 
-(defun mdw-eshell-hack ()
-  (when mdw-preload-hacks
-    (setenv "LD_PRELOAD" nil)))
+(defun mdw-eshell-hack () (setenv "LD_PRELOAD" nil))
 (add-hook 'eshell-mode-hook 'mdw-eshell-hack)
 
 ;;;--------------------------------------------------------------------------