11
Currently, every time I open a text file in emacs, I have to M-x longlines-mode in order to get my line-wrapping turned on. Likewise in clojure, I have to M-x paredit-mode (although it does automatically set the major modes to text and clojure, respectively).
I am hazy on the difference between major and minor modes, but I'm thinking the above-mentioned modes are minor. Is there a way to:
- configure emacs to open all clojure (*.clj) files with
paredit-modeautomatically? - configure a particular file (say, notes.txt) to open with
longlines-mode. I have tried adding-^- mode: longlines -^-or-^- mode: longlines-mode -^-as suggested in other threads, but it doesn't seem to work. I can't search for documentation on the-^-syntax because I don't know what it's called.