Coucou,
pour l'indentation du code, je propose qu'on respecte un peu nos yeux : un
script fait ça très bien :
http://www.bierkandt.org/beautify/beautify_php.php
il faut cocher "Braces PEAR-style" et ça correspond tout à fait au style de
codage de SPIP.
Et pour les indécrottables d'Emacs tout est prévu :
http://pear.php.net/manual/en/standards.php
(defun php-mode-hook ()
(setq tab-width 4
c-basic-offset 4
c-hanging-comment-ender-p nil
indent-tabs-mode
(not
(and (string-match "/\\(PEAR\\|pear\\)/" (buffer-file-name))
(string-match "\.php$" (buffer-file-name))))))
-- Fil