Fix conflict with vs-comment-return-mode and php-doc-block.
This commit is contained in:
parent
f929aad937
commit
026549eff7
@ -12,10 +12,19 @@
|
||||
(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)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(use-package php-doc-block
|
||||
|
Loading…
Reference in New Issue
Block a user