This is how I like to indent my code in Emacs. Put this in .emacs

(setq c-default-style
    '((java-mode . "java") (other . "stroustrup")))

This sets java source to "java" and everything else to "stroustrup"


CategoryLinux

EmacsIndentStyle (last edited 2006-01-28 15:09:33 by DavidKeen)