Fix conflict with vs-comment-return-mode and php-doc-block.
This commit is contained in:
parent
f929aad937
commit
026549eff7
@ -12,9 +12,18 @@
|
||||
(use-package php-mode
|
||||
:defer t
|
||||
:straight t
|
||||
:hook ((php-mode . (lambda ()
|
||||
(local-set-key (kbd "C-c d b") 'php-doc-block) ;; atajo para docblock
|
||||
))
|
||||
:bind ("C-c d b" . kj/php-doc-block)
|
||||
:config
|
||||
(defun kj/php-doc-block ()
|
||||
"Llama a \"php-dock-block\", sin conflicto con \"vs-comment-return-mode\"."
|
||||
(interactive)
|
||||
(if (bound-and-true-p vs-comment-return-mode)
|
||||
(funcall (lambda()
|
||||
(vs-comment-return-mode -1)
|
||||
(php-doc-block)
|
||||
(vs-comment-return-mode 1)))
|
||||
(php-doc-block)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user