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:
paredit-mode
automatically?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.I have this in my .emacs file
(require 'clojure-mode)
(defun turn-on-paredit () (paredit-mode 1))
(add-hook 'clojure-mode-hook 'turn-on-paredit)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With