mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
14 lines
359 B
EmacsLisp
14 lines
359 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))
|
|
(delete-trailing-whitespace)
|
|
(save-buffer)
|
|
)
|
|
|
|
|