Emacs: Fix daemon startup error
Alan Pearce alan@alanpearce.eu
Fri, 01 Sep 2017 20:37:00 +0200
1 files changed, 5 insertions(+), 2 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.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