all repos — nixfiles @ bb46cf8f8ff70e89514f30a07b0619df23b6f09d

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

Emacs: Add macOS TLS CA cert to trustfiles
Alan Pearce alan@alanpearce.uk
Thu, 27 Apr 2017 11:01:02 +0200
commit

bb46cf8f8ff70e89514f30a07b0619df23b6f09d

parent

6cf0843ec6ad3674d6d76b2709282bae0e69fd75

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -63,7 +63,8 @@ ("melpa" . 0))         package-menu-async t
         package-menu-hide-low-priority t)
   (when (eq system-type 'darwin)
-    (add-to-list 'gnutls-trustfiles "/etc/ssl/cert.pem"))
+    (with-eval-after-load "gnutls"
+      (add-to-list 'gnutls-trustfiles "/etc/ssl/cert.pem")))
   (package-initialize)
   (unless (package-installed-p 'use-package)
     (package-refresh-contents)