From 9cfe115873af42e64a6b6381d8a7f8ae079951cc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 29 Mar 2016 23:49:54 -0400 Subject: [PATCH] Update smartparens config for php and lua --- modules/module-lua.el | 2 +- modules/module-php.el | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/module-lua.el b/modules/module-lua.el index d0b4adf8c..cec820fa8 100644 --- a/modules/module-lua.el +++ b/modules/module-lua.el @@ -23,7 +23,7 @@ (sp-local-pair "then" "end" :when '(("RET")) :post-handlers '("||\n[i]")) (sp-local-pair "do" "end" :when '(("RET")) :post-handlers '("||\n[i]")) - (sp-local-pair "function" "end" :post-handlers '((" |()\n[i]\n" "RET") ("|() " "SPC"))))) + (sp-local-pair "function" " end" :post-handlers '(("[d-1] |()\n[i]\n[i]" "RET") ("|() " "SPC"))))) (define-minor-mode love-mode "Buffer local minor mode for Love2D" diff --git a/modules/module-php.el b/modules/module-php.el index 1c7621aab..a32701dcc 100644 --- a/modules/module-php.el +++ b/modules/module-php.el @@ -30,8 +30,9 @@ (sp-with-modes '(php-mode) (sp-local-pair "/*" "*/" :post-handlers '(("||\n[i]" "RET") ("| " "SPC"))) (sp-local-pair "/**" "*/" :post-handlers '(("||\n[i]" "RET") ("||\n[i]" "SPC"))) - (sp-local-pair "" :post-handlers '(("||\n[i]" "RET") ("| " "SPC") ("| " "="))) + (sp-local-pair "" :post-handlers '(("||\n[i]" "RET") ("| " "SPC") )) (sp-local-pair "" :post-handlers '(("||\n[i]" "RET") ("| " "SPC"))) + (sp-local-pair "") (sp-local-pair "" :when '(("RET")) :post-handlers '("||\n[i]")) (sp-local-pair "" :when '(("RET")) :post-handlers '("||\n[i]")))