1 ;; 3. Add a new c-indentation-style:
5 (c-offsets-alist . ((arglist-close . c-lineup-close-paren)
8 (arglist-cont-nonempty . c-lineup-math))))
9 "My Drupal Programming style")
11 (c-add-style "drupal" drupal)
13 ;; 4. Open file test.php, attached.
15 ;; 5. Run `c-set-style' and select "drupal"
17 ;; 6. Select the whole buffer and press "C-M-\" (or any other indentation command,
18 ;; for that matter) and watch as the array elements are lined up with "array(",
19 ;; whereas they should be indented by 2.
21 ;; 7. Run M-x php-mode and c-set-style to drupal
23 ;; 8. Try indenting again to see that indentation now works properly.