Enhance native-comp and warnings defaults
This commit is contained in:
@@ -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`:
|
2. You can also add the following to `~/.emacs.d/post-init.el`:
|
||||||
```emacs-lisp
|
```emacs-lisp
|
||||||
;; Hide warnings and display only errors
|
|
||||||
(setq warning-minimum-level :error)
|
|
||||||
|
|
||||||
;; Display of line numbers in the buffer:
|
;; Display of line numbers in the buffer:
|
||||||
;; (display-line-numbers-mode 1)
|
;; (display-line-numbers-mode 1)
|
||||||
|
|||||||
@@ -107,6 +107,8 @@ minimalistic appearance during startup.")
|
|||||||
;; Set-language-environment sets default-input-method, which is unwanted.
|
;; Set-language-environment sets default-input-method, which is unwanted.
|
||||||
(setq default-input-method nil)
|
(setq default-input-method nil)
|
||||||
|
|
||||||
|
(setq warning-minimum-level (if minimal-emacs-debug :warning :error))
|
||||||
|
|
||||||
;;; Performance
|
;;; Performance
|
||||||
|
|
||||||
;; Font compacting can be very resource-intensive, especially when rendering
|
;; 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.
|
;; Suppress compiler warnings and don't inundate users with their popups.
|
||||||
(setq native-comp-async-report-warnings-errors
|
(setq native-comp-async-report-warnings-errors
|
||||||
(or minimal-emacs-debug 'silent))
|
(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 native-comp-warning-on-missing-source minimal-emacs-debug)
|
||||||
|
|
||||||
(setq debug-on-error minimal-emacs-debug
|
(setq debug-on-error minimal-emacs-debug
|
||||||
|
|||||||
Reference in New Issue
Block a user