technomancy / emacs-starter-kit

[ARCHIVED] this is ancient history
GNU General Public License v3.0
2.87k stars 887 forks source link

comments are broken into multiple lines #127

Closed tommy24 closed 12 years ago

tommy24 commented 12 years ago

Hi,

When I comment out a long line using C-; , it will automatically break the line into several lines. This alters the format that I setted before. I only have this issue when I use emacs 24 with starter kit. Any idea how to disable this feature? Thanks.

Tommy

sluukkonen commented 12 years ago

It's called Auto Fill Mode. One way to disable it would be to add the following hook to C mode:

(add-hook 'c-mode-hook
      (lambda ()
        (auto-fill-mode 0)))
tommy24 commented 12 years ago

Thanks a lot. It works as I expected now.