add config-dir variable and change load-path to use it

This commit is contained in:
2021-05-13 20:43:07 +02:00
parent 9723323a29
commit e13e08068b
22 changed files with 52 additions and 50 deletions

View File

@@ -18,23 +18,23 @@
(setq css-indent-offset 2))
(use-package js2-mode
:load-path "lisp/js2-mode"
:load-path (lambda() (concat config-dir "lisp/js2-mode"))
:commands js2-mode)
(use-package php-mode
:load-path "lisp/php-mode"
:load-path (lambda() (concat config-dir "lisp/php-mode"))
:commands php-mode)
(use-package web-mode
:commands (web-mode))
(use-package web-completion-data
:load-path "lisp/web-completion-data"
:load-path (lambda() (concat config-dir "lisp/web-completion-data"))
:defer t)
(use-package company-web-html
:after (web-mode company)
:load-path "lisp/company-web"
:load-path (lambda() (concat config-dir "lisp/company-web"))
:bind (([remap complete-symbol] . company-complete)) ;; M-C-i and <M-tab>
:config
;;(add-to-list 'company-backends 'company-web-html)