mapnik/utils/format_source_files/mapnik_format.el

14 lines
359 B
EmacsLisp
Raw Normal View History

(defun mapnik-format-function ()
"Format buffer according to mapnik style (TODO)"
(c-set-style "bsd")
(c-set-offset 'innamespace 0)
(c-set-offset 'template-args-cont 'c-lineup-template-args)
(setq c-basic-offset 4)
(indent-region (point-min) (point-max) nil)
(untabify (point-min) (point-max))
2011-11-10 00:26:37 +00:00
(delete-trailing-whitespace)
(save-buffer)
)