Skip to content

Commit

Permalink
Stop enabling auto-fill-mode in text-mode.
Browse files Browse the repository at this point in the history
  - It causes problems because text-mode forms the basis for too many
    different other modes. So, for example, we get filling when
    opening .ssh/authorized_keys, which is a real pain in the ass.
  • Loading branch information
candera committed Oct 5, 2011
1 parent 50a7734 commit 1179122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.el
Expand Up @@ -212,7 +212,7 @@
(setq default-major-mode 'text-mode)
(setq display-time-day-and-date 'true)
(display-time)
(add-hook 'text-mode-hook 'turn-on-auto-fill)

;; text-mode-hook runs even in modes derived from text-mode, like
;; javascript-mode, where having flyspell turned on is not exactly
;; handy. Turn it off in modes where we don't want it.
Expand Down

0 comments on commit 1179122

Please sign in to comment.