https://github.com/mapnik/mapnik-clang-format
Mapnik C/C++ style
https://github.com/mapnik/mapnik-clang-format
Last synced: 16 days ago
JSON representation
Mapnik C/C++ style
- Host: GitHub
- URL: https://github.com/mapnik/mapnik-clang-format
- Owner: mapnik
- Created: 2016-02-11T09:01:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-11T09:06:06.000Z (about 10 years ago)
- Last Synced: 2025-01-13T00:21:07.078Z (about 1 year ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mapnik-clang-format
Mapnik C/C++ style
#### Emacs integration
```lisp
;; clang-format integration
;; set path to `clang-format`
(setq exec-path (append exec-path '("/opt/llvm/bin")))
(load "/opt/llvm/share/clang/clang-format.el")
(global-set-key [C-M-tab] 'clang-format-region)
(add-hook 'c++-mode-hook
'(lambda ()
(add-hook 'before-save-hook #'clang-format-buffer nil t)))
```