about summary refs log tree commit diff
path: root/users/wpcarro/emacs/.emacs.d
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-11-09T18·43-0800
committerclbot <clbot@tvl.fyi>2022-01-08T06·15+0000
commit07d1f9449bedebd545001a62f1d7eec34b104ced (patch)
treec5ad767ca096fc8ea3983f40523946684f5993e1 /users/wpcarro/emacs/.emacs.d
parentdf9a698c096f04c8a70e64e287cd6ba91b6d5b4b (diff)
fix(wpcarro/emacs): Ensure debug-on-error is globally set r/3564
I'm still a bit confused about the nuances between the myriad of ways to handle
variables in Emacs...

- `setq`
- `setq-default`
- `setq-local`
- `defvar`
- `defcustom`
- `defconst`
- `customize-set-variable`
- `make-local-variable`
- `make-variable-buffer-local`
- `kill-local-variable`

...but after running some experiments, this triggers the Emacs debugger when an
error is encountered (e.g. either *in* `init.el` or another package that is
evaluated during `init.el`'s evaluation).

Change-Id: I00d543735b1d816462ba18bad23867865d7af80e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4812
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/emacs/.emacs.d')
-rw-r--r--users/wpcarro/emacs/.emacs.d/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/init.el b/users/wpcarro/emacs/.emacs.d/init.el
index a54ab18351ca..a87be333c73a 100644
--- a/users/wpcarro/emacs/.emacs.d/init.el
+++ b/users/wpcarro/emacs/.emacs.d/init.el
@@ -1,4 +1,5 @@
 ;; load order is intentional
+(setq-default debug-on-error t)
 (require 'wpc-package)
 (require 'wpc-misc)
 (require 'ssh)