lang/php: simplify rules for smartparens

This commit is contained in:
Henrik Lissner 2018-07-18 19:58:33 +02:00
parent f6f74efdee
commit 95d6c6664d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -28,12 +28,8 @@
(setq-hook! 'php-mode-hook sp-max-pair-length 6)
(sp-with-modes '(php-mode)
(sp-local-pair "/* " "*/" :post-handlers '(("||\n[i] " "RET") ("| " "SPC")))
(sp-local-pair "<? " " ?>")
(sp-local-pair "<?php " " ?>")
(sp-local-pair "<?=" " ?>")
(sp-local-pair "<?" "?>" :when '(("RET")) :post-handlers '("||\n[i]"))
(sp-local-pair "<?php" "?>" :when '(("RET")) :post-handlers '("||\n[i]")))
(sp-local-pair "<?" "?>" :post-handlers '(("| " "SPC" "=") ("||\n[i]" "RET") ("[d2]" "p")))
(sp-local-pair "<?php" "?>" :post-handlers '(("| " "SPC") ("||\n[i]" "RET"))))
(map! :map php-mode-map
:localleader