Major refactor: use-package-always-defer = nil & use :hook
Possibly breaking change: packages are no longer deferred by default. Addresses #286
This commit is contained in:
parent
2cbd1b9107
commit
9d81bc5a8b
45 changed files with 90 additions and 151 deletions
|
@ -3,12 +3,11 @@
|
|||
(def-package! lua-mode
|
||||
:mode "\\.lua$"
|
||||
:interpreter "lua"
|
||||
:init
|
||||
(add-hook 'lua-mode-hook #'flycheck-mode)
|
||||
:config
|
||||
(add-hook 'lua-mode-hook #'flycheck-mode)
|
||||
|
||||
(set! :electric 'lua-mode :words '("else" "end"))
|
||||
(set! :repl 'lua-mode #'+lua/repl)
|
||||
|
||||
;; sp's lua-specific rules are obnoxious, so we disable them
|
||||
(setq sp-pairs (delete (assq 'lua-mode sp-pairs) sp-pairs))
|
||||
|
||||
|
@ -23,8 +22,7 @@
|
|||
|
||||
|
||||
(def-package! company-lua
|
||||
:when (featurep! :completion company)
|
||||
:after lua-mode
|
||||
:after (:all company lua-mode)
|
||||
:config
|
||||
(set! :company-backend 'lua-mode '(company-lua company-yasnippet)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue