confi-emacs-actual/configs/lang-php.el

36 lines
872 B
EmacsLisp
Raw Normal View History

;;; lang-php.el --- Configuración para el lenguaje PHP -*- lexical-binding: t -*-
2022-03-30 01:21:13 +02:00
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
;;; Commentary:
2023-04-14 18:39:19 +02:00
;; Archivo de configuración para el lenguaje PHP
2022-03-30 01:21:13 +02:00
;;; Code:
(use-package php-mode
:defer t
: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)
)
)
2022-03-30 01:21:13 +02:00
)
(use-package php-doc-block
:after php-mode
:ensure (:host github :repo "moskalyovd/emacs-php-doc-block")
2022-03-30 01:21:13 +02:00
)
(provide 'lang-php)
;;; lang-php.el ends here