For example where we call json-mode we actually want json-mode + json-mode-beautify, so let's set up a function that does that and then put it in the alist instead.
See my-scratch-autodetect-mode and custom mode handling.
We will also need to traverse the alist and replace the values added by other modes. Or maybe hook to the mode function so we don't have to bother with external code.
For example where we call
json-mode
we actually wantjson-mode
+json-mode-beautify
, so let's set up a function that does that and then put it in the alist instead.See
my-scratch-autodetect-mode
and custom mode handling.We will also need to traverse the alist and replace the values added by other modes. Or maybe hook to the mode function so we don't have to bother with external code.