spacemacs/layers/+lang/php/funcs.el

26 lines
684 B
EmacsLisp
Raw Normal View History

2019-01-02 21:34:56 +00:00
;;; funcs.el --- PHP Layer functions File for Spacemacs
;;
2020-09-16 21:34:40 +00:00
;; Copyright (c) 2012-2020 Sylvain Benner & Contributors
2019-01-02 21:34:56 +00:00
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
(defun spacemacs//php-setup-backend ()
"Conditionally setup php backend."
(pcase php-backend
(`lsp (lsp))))
(defun spacemacs//php-setup-dap ()
"Conditionally setup elixir DAP integration."
;; currently DAP is only available using LSP
(pcase php-backend
(`lsp (spacemacs//php-setup-lsp-dap))))
(defun spacemacs//php-setup-lsp-dap ()
"Setup DAP integration."
(require 'dap-php))