all repos — nixfiles @ bfdf0f4afb759fecbc6d374dadf1b522f70f9e54

System and user configuration, managed by nix and home-manager

Emacs: Fix daemon startup error

Alan Pearce
commit

bfdf0f4afb759fecbc6d374dadf1b522f70f9e54

parent

554583649c15cb783b637523f97252e2e036782e

1 file changed, 5 insertions(+), 2 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -60,8 +60,11 @@
;; #+BEGIN_SRC emacs-lisp (eval-and-compile (require 'seq) - (defvar nix-emacs (and (string-match "^/nix/store" invocation-directory) - (not (null (seq-some (lambda (dir) (string-match "^/nix/store" dir)) load-path))))) + (defun is-nix-emacs () + (and invocation-directory + (string-match "^/nix/store" invocation-directory) + (not (null (seq-some (lambda (dir) (string-match "^/nix/store" dir)) load-path))))) + (defvar nix-emacs (is-nix-emacs)) (setq tls-checktrust t gnutls-verify-error t