문제

Paredit mode is chopping my comments when they get to be longer than 70 characters like so:

;; a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b 

becomes:

;; a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b a b
;; a b a b a b a b a b a b a b a b

I would like to know how to change that 70 to 120 and optionally turn it off entirely.

도움이 되었습니까?

해결책

That most certainly is auto-fill-mode at work. To change the column at which emacs will split the line you can use M-x set-fill-column. If you want to change it permanently you can do it in your clojure-mode hook, something like:

(add-hook 'clojure-mode-hook (lambda () (set-fill-column 120)))

On the other hand, if you want to turn it off something like:

(add-hook 'clojure-mode-hook (lambda () (auto-fill-mode 0)))

Should do the trick.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top