aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init/oni-align.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-02-18 22:11:12 -0800
committerGravatar Tom Willemse2019-02-18 22:11:12 -0800
commitc450e0898b20db6e82b37b80455c07b0459bd94f (patch)
tree5eeb9ca5d7fce712f7bcd643ff194b351598b44d /emacs/.emacs.d/init/oni-align.el
parent514ff2632f9ee879c6b41c273d0048bce48ae357 (diff)
downloadnew-dotfiles-c450e0898b20db6e82b37b80455c07b0459bd94f.tar.gz
new-dotfiles-c450e0898b20db6e82b37b80455c07b0459bd94f.zip
Move PHP configuration to emacs-config
Diffstat (limited to 'emacs/.emacs.d/init/oni-align.el')
-rw-r--r--emacs/.emacs.d/init/oni-align.el32
1 files changed, 0 insertions, 32 deletions
diff --git a/emacs/.emacs.d/init/oni-align.el b/emacs/.emacs.d/init/oni-align.el
index 3e45844..8e63d27 100644
--- a/emacs/.emacs.d/init/oni-align.el
+++ b/emacs/.emacs.d/init/oni-align.el
@@ -74,37 +74,5 @@
(group . (1))
(modes . '(scss-mode css-mode))))
-;; In PHP code it's nice to have any ~=>~ aligned.
-
-;; <?php
-;; array(
-;; 'foo' => 'bar',
-;; 'frob' => 'baz'
-;; );
-;; ?>
-
-(add-to-list 'align-rules-list
- `(php-array-arrow
- (regexp . ,(rx any (group (zero-or-more whitespace)) "=>" any))
- (group . (1))
- (modes . '(php-mode web-mode))
- (repeat . t)))
-
-;; The WordPress coding standards specify that multiple assignments
-;; should have their assignment operators aligned.
-
-;; <?php
-;; $variable = "value";
-;; $other_variable = "other value";
-;; $one_more_variable = "one more variable";
-
-(add-to-list align-rules-list
- `(php-assignment-equals
- (regexp . ,(rx any (group (zero-or-more whitespace)) "="
- (zero-or-more whitespace) any))
- (group . (1))
- (modes . '(php-mode web-mode))
- (repeat . t)))
-
(provide 'oni-align)
;;; oni-align.el ends here