From 95d6c6664dc7978edf7b1cf5944f55b3ed44ba95 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 18 Jul 2018 19:58:33 +0200 Subject: [PATCH] lang/php: simplify rules for smartparens --- modules/lang/php/config.el | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/lang/php/config.el b/modules/lang/php/config.el index 6e0136d73..ea01efcb4 100644 --- a/modules/lang/php/config.el +++ b/modules/lang/php/config.el @@ -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 "") - (sp-local-pair "") - (sp-local-pair "" :when '(("RET")) :post-handlers '("||\n[i]")) - (sp-local-pair "" :when '(("RET")) :post-handlers '("||\n[i]"))) + (sp-local-pair "" :post-handlers '(("| " "SPC" "=") ("||\n[i]" "RET") ("[d2]" "p"))) + (sp-local-pair "" :post-handlers '(("| " "SPC") ("||\n[i]" "RET")))) (map! :map php-mode-map :localleader