summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 22:52:10 +0200
committerAlan Pearce2017-06-18 22:52:10 +0200
commit32f0ff25f19c4dd2fae22f4fcb01286beb098808 (patch)
tree82092946a898fa8629567a313006a438afc49add
parent09c2fc0d1d5cb73008278f90c5638da78f141e4c (diff)
downloadnixfiles-32f0ff25f19c4dd2fae22f4fcb01286beb098808.tar.lz
nixfiles-32f0ff25f19c4dd2fae22f4fcb01286beb098808.tar.zst
nixfiles-32f0ff25f19c4dd2fae22f4fcb01286beb098808.zip
Emacs: Improve nix-emacs check
-rw-r--r--emacs/.emacs.d/init.org3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index ba411058..287502b0 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