Skip to content
Snippets Groups Projects
Commit cfdf8889 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Crée un fichier ~/.clang-format au démarrage.

Ce fichier déactive clang-format globalement dans le home de
l'utilisateur.

C'est destiné aux utilisateurs qui n'utilisent pas clang-format. En
fait clang-format s'il ne trouve pas de .clang-format dans les
répertoires parents utilise une configuration par défaut plutôt que ne
rien faire ...
parent ec79bd3c
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,18 @@ ...@@ -52,6 +52,18 @@
(load-file "~/.emacs.d/.init-custom.el") (load-file "~/.emacs.d/.init-custom.el")
(customize-save-customized)) (customize-save-customized))
;;; Charge la configuration et éventuellement la sauve si le fichier
;;; de customization n'existe pas
(let ((home-dot-clang-format "~/.clang-format"))
(unless (file-exists-p home-dot-clang-format)
(with-temp-file home-dot-clang-format
(insert "---
Language: Cpp
DisableFormat: true
SortIncludes: false
---
"))))
;;; Local Variables: ;;; Local Variables:
;;; byte-compile-warnings: (not free-vars) ;;; byte-compile-warnings: (not free-vars)
;;; End: (provide 'init) ;;; End: (provide 'init)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment