Move smartparens configs to modules
This commit is contained in:
parent
1c37aebd2e
commit
f9e488cb0c
11 changed files with 98 additions and 61 deletions
|
@ -23,6 +23,14 @@
|
|||
(load (concat php-extras-eldoc-functions-file ".el"))
|
||||
(message "PHP eldoc updated!"))))
|
||||
|
||||
(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 "<?php " " ?>" :post-handlers '(("||\n[i]" "RET") ("| " "SPC")))
|
||||
(sp-local-pair "<?" "?>" :when '(("RET")) :post-handlers '("||\n[i]"))
|
||||
(sp-local-pair "<?php" "?>" :when '(("RET")) :post-handlers '("||\n[i]")))
|
||||
|
||||
(use-package php-refactor-mode
|
||||
:init
|
||||
(add-hook! php-mode '(turn-on-eldoc-mode emr-initialize php-refactor-mode))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue