summaryrefslogtreecommitdiffstats
path: root/emacs.d/nxhtml/tests/in/bug-381191-dh-test.el
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-03-07 09:04:49 +0100
committerGravatar Tom Willemsen2011-03-07 09:04:49 +0100
commit94d2fc1815a919734353c942f224db1de4b4fcb8 (patch)
tree4168e816ead132bfa3510e272427837c3895f5e2 /emacs.d/nxhtml/tests/in/bug-381191-dh-test.el
parentd0e7674fdb1de12c8de202d4028a5d7ed3669a6e (diff)
downloaddotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.tar.gz
dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.zip
Django, org
* Added nxhtml, mostly for django support. * Changed some org settings.
Diffstat (limited to 'emacs.d/nxhtml/tests/in/bug-381191-dh-test.el')
-rw-r--r--emacs.d/nxhtml/tests/in/bug-381191-dh-test.el23
1 files changed, 23 insertions, 0 deletions
diff --git a/emacs.d/nxhtml/tests/in/bug-381191-dh-test.el b/emacs.d/nxhtml/tests/in/bug-381191-dh-test.el
new file mode 100644
index 0000000..d960a10
--- /dev/null
+++ b/emacs.d/nxhtml/tests/in/bug-381191-dh-test.el
@@ -0,0 +1,23 @@
+;; 3. Add a new c-indentation-style:
+
+(defconst drupal
+ '((c-basic-offset . 2)
+ (c-offsets-alist . ((arglist-close . c-lineup-close-paren)
+ (case-label . +)
+ (arglist-intro . +)
+ (arglist-cont-nonempty . c-lineup-math))))
+ "My Drupal Programming style")
+
+(c-add-style "drupal" drupal)
+
+;; 4. Open file test.php, attached.
+
+;; 5. Run `c-set-style' and select "drupal"
+
+;; 6. Select the whole buffer and press "C-M-\" (or any other indentation command,
+;; for that matter) and watch as the array elements are lined up with "array(",
+;; whereas they should be indented by 2.
+
+;; 7. Run M-x php-mode and c-set-style to drupal
+
+;; 8. Try indenting again to see that indentation now works properly.