initial commit
[emacs-init.git] / nxhtml / tests / in / bug-381191-dh-test.el
1 ;; 3. Add a new c-indentation-style:
2
3 (defconst drupal
4   '((c-basic-offset . 2)
5     (c-offsets-alist . ((arglist-close . c-lineup-close-paren)
6                         (case-label . +)
7                         (arglist-intro . +)
8                         (arglist-cont-nonempty . c-lineup-math))))
9   "My Drupal Programming style")
10
11 (c-add-style "drupal" drupal)
12
13 ;; 4. Open file test.php, attached.
14
15 ;; 5. Run `c-set-style' and select "drupal"
16
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.
20
21 ;; 7. Run M-x php-mode and c-set-style to drupal
22
23 ;; 8. Try indenting again to see that indentation now works properly.