s/defadvice!/advice-add in comp config block
Part 2 of 811099282
.
The latest build of native-comp appears to eagerly load comp very early,
so defadvice! won't be defined when this block runs, causing this error.
This commit is contained in:
parent
0df791469d
commit
0ff85015f8
1 changed files with 3 additions and 3 deletions
|
@ -165,11 +165,11 @@ users).")
|
||||||
(concat local-dir-re ".*/jupyter-channel\\.el\\'"))))
|
(concat local-dir-re ".*/jupyter-channel\\.el\\'"))))
|
||||||
;; Default to using all cores, rather than half of them, since we compile
|
;; Default to using all cores, rather than half of them, since we compile
|
||||||
;; things ahead-of-time in a non-interactive session.
|
;; things ahead-of-time in a non-interactive session.
|
||||||
(defadvice! doom--comp-use-all-cores-a ()
|
(defun doom--comp-use-all-cores-a ()
|
||||||
:override #'comp-effective-async-max-jobs
|
|
||||||
(if (zerop comp-async-jobs-number)
|
(if (zerop comp-async-jobs-number)
|
||||||
(setq comp-num-cpus (doom-num-cpus))
|
(setq comp-num-cpus (doom-num-cpus))
|
||||||
comp-async-jobs-number)))
|
comp-async-jobs-number))
|
||||||
|
(advice-add #'comp-effective-async-max-jobs :override #'doom--comp-use-all-cores-a))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue