File: mapnik_format.el

package info (click to toggle)
mapnik 3.1.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,548 kB
  • sloc: cpp: 144,430; python: 30,187; sh: 797; makefile: 172; xml: 140; lisp: 13
file content (15 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(defun mapnik-format-function ()
  "Format buffer according to mapnik style (TODO)"
  (add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
  (c-set-style "bsd")
  (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)
)