From 32f0ff25f19c4dd2fae22f4fcb01286beb098808 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 18 Jun 2017 22:52:10 +0200 Subject: Emacs: Improve nix-emacs check --- emacs/.emacs.d/init.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index ba41105..287502b 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -58,8 +58,9 @@ the buffer to be empty. #+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 -- cgit 1.4.1