From 39909a00c126dbfae0d6f53cecba3b57f4821c0d Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Wed, 1 Aug 2018 16:19:54 +0200 Subject: [PATCH] =?UTF-8?q?[Init]=20Fix=20calls=20of=20=E2=80=98with-demot?= =?UTF-8?q?ed-errors=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One should read the documentation before using it … --- init.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index b457060..0a00714 100644 --- a/init.el +++ b/init.el @@ -114,11 +114,11 @@ sml/setup ivy-mode which-key-mode)) - (with-demoted-errors ; don’t barf if mode cannot be loaded + (with-demoted-errors "Cannot activate mode: %s" (funcall mode +1))) (unless on-windows - (with-demoted-errors + (with-demoted-errors "Error: %s" (projectile-mode +1) (pdf-tools-install))) @@ -241,7 +241,7 @@ ;; Environment Variables (unless on-windows - (with-demoted-errors + (with-demoted-errors "Cannot import environment variables: %s" (exec-path-from-shell-copy-envs '("SSH_AUTH_SOCK" "SSH_AGENT_PID" "PATH"