Emacs: Improve nix-emacs check
Alan Pearce alan@alanpearce.eu
Sun, 18 Jun 2017 22:52:10 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M emacs/.emacs.d/init.org → emacs/.emacs.d/init.org
@@ -58,8 +58,9 @@ ** Use-package #+BEGIN_SRC emacs-lisp (eval-and-compile + (require 'seq) (defvar nix-emacs (and (string-match "^/nix/store" invocation-directory) - (string-equal emacs-build-system system-name))) + (not (null (seq-some (lambda (dir) (string-match "^/nix/store" dir)) load-path))))) (setq tls-checktrust t gnutls-verify-error t