all repos — nixfiles @ c4d51ea56e3498374d27655f9e92707bcf1f9c72

System and user configuration, managed by nix and home-manager

emacs: check for native-comp support before configuring it

Alan Pearce
commit

c4d51ea56e3498374d27655f9e92707bcf1f9c72

parent

61af3ee1d813563045de1e17a98bd882a6fbe6e5

1 file changed, 4 insertions(+), 3 deletions(-)

jump to
M user/emacs/early-init.eluser/emacs/early-init.el
@@ -5,9 +5,10 @@ frame-inhibit-implied-resize t
byte-compile-warnings '(not free-vars unresolved noruntime lexical make-local cl-functions)) (require 'xdg) -(startup-redirect-eln-cache - (expand-file-name "emacs/native-compile" - (xdg-cache-home))) +(when (native-comp-available-p) + (startup-redirect-eln-cache + (expand-file-name "emacs/native-compile" + (xdg-cache-home)))) ;; Disable all the bars, unless on macOS, in which case, keep the menu bar. (unless (eq window-system 'ns)