[Init] Fix calls of ‘with-demoted-errors’

One should read the documentation before using it …
This commit is contained in:
Daniel - 2018-08-01 16:19:54 +02:00
parent 09c1d2c37c
commit 39909a00c1
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 3 additions and 3 deletions

View File

@ -114,11 +114,11 @@
sml/setup
ivy-mode
which-key-mode))
(with-demoted-errors ; dont 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"