diff options
author | Alan Pearce | 2017-06-18 22:52:10 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-18 22:52:10 +0200 |
commit | 32f0ff25f19c4dd2fae22f4fcb01286beb098808 (patch) | |
tree | 82092946a898fa8629567a313006a438afc49add /emacs | |
parent | 09c2fc0d1d5cb73008278f90c5638da78f141e4c (diff) | |
download | nixfiles-32f0ff25f19c4dd2fae22f4fcb01286beb098808.tar.lz nixfiles-32f0ff25f19c4dd2fae22f4fcb01286beb098808.tar.zst nixfiles-32f0ff25f19c4dd2fae22f4fcb01286beb098808.zip |
Emacs: Improve nix-emacs check
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/init.org | 3 |
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 |