Move define-docset! calls to modules

This commit is contained in:
Henrik Lissner 2016-02-20 15:30:30 -05:00
parent b220872cc6
commit b2a3ab90b3
10 changed files with 20 additions and 15 deletions

View file

@ -3,13 +3,15 @@
(use-package php-mode
:mode "\\.\\(php\\|inc\\)$"
:init
(define-docset! php-mode "php,laravel")
(define-company-backend! php-mode '(php-extras-company))
(add-hook! php-mode 'flycheck-mode)
(setq php-template-compatibility nil
php-extras-eldoc-functions-file (concat narf-temp-dir "php-extras-eldoc-functions"))
:config
(require 'php-extras)
(defun php-extras-company-setup ()) ;; company will set up itself
(define-company-backend! php-mode '(php-extras-company))
(unless (file-exists-p (concat php-extras-eldoc-functions-file ".el"))
(async-start `(lambda ()