Refactor modules to optimize autoloads + startup

This commit is contained in:
Henrik Lissner
2016-05-01 01:10:30 -04:00
parent 8769c3187b
commit 0a78922471
18 changed files with 103 additions and 90 deletions

View File

@ -2,20 +2,21 @@
(use-package hack-mode
:mode "\\.hh$"
:init (def-company-backend! hack-mode (capf)))
:config (def-company-backend! hack-mode (capf)))
(use-package php-mode
:mode ("\\.php[s345]?$" "\\.inc$" )
:interpreter "php"
:init
(def-repl! php-mode php-boris)
(def-docset! php-mode "php,laravel")
(def-company-backend! php-mode '(company-ac-php-backend php-extras-company))
(add-hook 'php-mode-hook 'flycheck-mode)
(setq php-template-compatibility nil
php-extras-eldoc-functions-file (concat narf-temp-dir "/php-extras-eldoc-functions"))
:config
(def-repl! php-mode php-boris)
(def-docset! php-mode "php,laravel")
(def-company-backend! php-mode '(company-ac-php-backend php-extras-company))
(map! :map php-mode-map (:localleader :nv ";" 'narf/append-semicolon))
(sp-with-modes '(php-mode)