Let’s see if I can ask this question clearly (not a programmer, so…):
I use a key binding tied to a little python script to change the width of my line wrap. I find I’m using that key binding toggle on almost every text file I open, and I’m wondering how/whether a particular keypress (in this case, alt+e) can be automated to run every time I open a txt file. I don’t want that change to be permanent–I still want the toggle to be available if I want to change the wrap width to its other state–but I’d like my txt files to open with the toggle state I like best.
Does that make sense?