2010-06-02 13:03:39 +02:00
|
|
|
(defun mapnik-format-function ()
|
|
|
|
"Format buffer according to mapnik style (TODO)"
|
2013-02-28 19:59:12 +01:00
|
|
|
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
|
|
|
|
(c-set-style "bsd")
|
2010-06-02 13:03:39 +02:00
|
|
|
(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 01:26:37 +01:00
|
|
|
(delete-trailing-whitespace)
|
2010-06-02 13:03:39 +02:00
|
|
|
(save-buffer)
|
|
|
|
)
|
|
|
|
|
|
|
|
|