Enhance native-comp and warnings defaults

This commit is contained in:
James Cherti
2025-02-27 10:19:25 -05:00
parent ce4582d1bd
commit 0768ad04ab
2 changed files with 5 additions and 2 deletions

View File

@@ -727,8 +727,6 @@ And [add the elpaca bootstrap code](https://github.com/progfolio/elpaca?tab=read
2. You can also add the following to `~/.emacs.d/post-init.el`:
```emacs-lisp
;; Hide warnings and display only errors
(setq warning-minimum-level :error)
;; Display of line numbers in the buffer:
;; (display-line-numbers-mode 1)

View File

@@ -107,6 +107,8 @@ minimalistic appearance during startup.")
;; Set-language-environment sets default-input-method, which is unwanted.
(setq default-input-method nil)
(setq warning-minimum-level (if minimal-emacs-debug :warning :error))
;;; Performance
;; Font compacting can be very resource-intensive, especially when rendering
@@ -251,6 +253,9 @@ minimalistic appearance during startup.")
;; Suppress compiler warnings and don't inundate users with their popups.
(setq native-comp-async-report-warnings-errors
(or minimal-emacs-debug 'silent))
(setq native-comp-verbose (if minimal-emacs-debug 1 0)
native-comp-debug (if minimal-emacs-debug 1 0))
(setq native-comp-jit-compilation t)
(setq native-comp-warning-on-missing-source minimal-emacs-debug)
(setq debug-on-error minimal-emacs-debug