I want to permanently change my keyboard layout. Every time I restart my computer, I have to add Spanish ISO layout and delete the US one.
My Macbook has a spanish keyboard but I use OSx in english.
You can rearrange the languages from System Preferences > Languages. Don't delete English but put Spanish ISO first. I've it like that and the config sticks through restarts and the like.
I solved a similar issue by deleting the HIToolbox.plist
file after changing the keyboard layout under System Preferences.
rm -rf ~/Library/Preferences/com.apple.HIToolbox.plist