[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
|
sml/setup
|
||||||
ivy-mode
|
ivy-mode
|
||||||
which-key-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)))
|
(funcall mode +1)))
|
||||||
|
|
||||||
(unless on-windows
|
(unless on-windows
|
||||||
(with-demoted-errors
|
(with-demoted-errors "Error: %s"
|
||||||
(projectile-mode +1)
|
(projectile-mode +1)
|
||||||
(pdf-tools-install)))
|
(pdf-tools-install)))
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@
|
||||||
;; Environment Variables
|
;; Environment Variables
|
||||||
|
|
||||||
(unless on-windows
|
(unless on-windows
|
||||||
(with-demoted-errors
|
(with-demoted-errors "Cannot import environment variables: %s"
|
||||||
(exec-path-from-shell-copy-envs '("SSH_AUTH_SOCK"
|
(exec-path-from-shell-copy-envs '("SSH_AUTH_SOCK"
|
||||||
"SSH_AGENT_PID"
|
"SSH_AGENT_PID"
|
||||||
"PATH"
|
"PATH"
|
||||||
|
|
Loading…
Reference in New Issue