mapnik/utils/format_source_files/mapnik_format.el
Artem Pavlenko 0f597b2809 + Add basic format functions and script.
Usage:
      cd $mapnik_source/utils/format_source_files
      ./format_source_files.sh
  (TODO: just a starting point to remove tabs,
  needs some more work)
2010-06-02 11:03:39 +00:00

12 lines
328 B
EmacsLisp

(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))
(save-buffer)
)