Introduce autodefs to replace some settings
+ :popup -> set-popup-rule! + :popups -> set-popup-rules! + :company-backend -> set-company-backend! + :evil-state -> set-evil-initial-state! I am slowly phasing out the setting system (def-setting! and set!), starting with these. What are autodefs? These are functions that are always defined, whether or not their respective modules are enabled. However, when their modules are disabled, they are replaced with macros that no-op and don't waste time evaluating their arguments. The old set! function will still work, for a while.
This commit is contained in:
parent
6693db48af
commit
d8b1e469bc
54 changed files with 329 additions and 248 deletions
|
@ -156,7 +156,7 @@ compilation database is present in the project.")
|
|||
(def-package! company-irony
|
||||
:when (featurep! :completion company)
|
||||
:init
|
||||
(set! :company-backend
|
||||
(set-company-backend!
|
||||
'(c-mode c++-mode objc-mode)
|
||||
'(:separate company-irony-c-headers company-irony))
|
||||
:config
|
||||
|
@ -168,7 +168,8 @@ compilation database is present in the project.")
|
|||
;;
|
||||
|
||||
;; `cmake-mode'
|
||||
(set! :company-backend 'cmake-mode '(company-cmake company-yasnippet))
|
||||
(after! cmake-mode
|
||||
(set-company-backend! 'cmake-mode '(company-cmake company-yasnippet)))
|
||||
|
||||
(def-package! company-cmake
|
||||
:when (featurep! :completion company)
|
||||
|
@ -183,7 +184,7 @@ compilation database is present in the project.")
|
|||
(def-package! company-glsl
|
||||
:when (featurep! :completion company)
|
||||
:after glsl-mode
|
||||
:config (set! :company-backend 'glsl-mode '(company-glsl)))
|
||||
:config (set-company-backend! 'glsl-mode '(company-glsl)))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue