[Init] Fix calls of ‘with-demoted-errors’
One should read the documentation before using it …
This commit is contained in:
parent
09c1d2c37c
commit
39909a00c1
6
init.el
6
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"
|
||||
|
|
Loading…
Reference in New Issue