Fuco1 / .emacs.d

My emacs config
MIT License
69 stars 13 forks source link

Wrap values in magic-mode-alist with custom helpers #30

Open Fuco1 opened 6 years ago

Fuco1 commented 6 years ago

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.