Merge pull request #34 from jamescherti/develop

Various enhancements
This commit is contained in:
James Cherti
2025-02-27 15:38:11 -05:00
committed by GitHub
3 changed files with 17 additions and 11 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

21
init.el
View File

@@ -20,15 +20,15 @@
;;; Before package
;; Increase how much is read from processes in a single chunk
(setq read-process-output-max (* 1024 1024)) ; 1024kb
(setq read-process-output-max (* 2 1024 1024)) ; 1024kb
(setq process-adaptive-read-buffering nil)
;; Don't ping things that look like domain names.
(setq ffap-machine-p-known 'reject)
;;; Undo/redo
;; Increase undo limits to prevent early garbage collection from aggressively
;; truncating undo history
(setq undo-limit (* 13 160000)
undo-strong-limit (* 13 240000)
undo-outer-limit (* 13 24000000))
@@ -115,8 +115,7 @@
;; but may reduce visual feedback.
(setq redisplay-skip-fontification-on-input t)
;; Collects and displays all available documentation immediately, even if
;; multiple sources provide it. It concatenates the results.
;; Collects and displays all available documentation immediately
(setq eldoc-documentation-strategy 'eldoc-documentation-compose-eagerly)
;; Disable truncation of printed s-expressions in the message buffer
@@ -130,6 +129,7 @@
;; Delete by moving to trash in interactive mode
(setq delete-by-moving-to-trash (not noninteractive))
(setq remote-file-name-inhibit-delete-by-moving-to-trash t)
;; Disable the warning "X and Y are the same file". Ignoring this warning is
;; acceptable since it will redirect you to the existing buffer regardless.
@@ -231,11 +231,14 @@
;;; savehist
;; `savehist-mode' is an Emacs feature that preserves the minibuffer history
;; between sessions. It saves the history of inputs in the minibuffer, such as
;; commands, search strings, and other prompts, to a file. This allows users to
;; retain their minibuffer history across Emacs restarts.
;; between sessions.
(setq history-length 300)
(setq savehist-save-minibuffer-history t) ;; Default
(setq savehist-additional-variables
'(kill-ring ; clipboard
register-alist ; macros
mark-ring global-mark-ring ; marks
search-ring regexp-search-ring)) ; searches
;;; Frames and windows
@@ -276,7 +279,7 @@
;; window is never automatically recentered. The default value of 0 triggers
;; recentering too aggressively. Setting it to 10 reduces excessive recentering
;; and only recenters the window when scrolling significantly off-screen.
(setq scroll-conservatively 10)
(setq scroll-conservatively 101)
;; Enables smooth scrolling by making Emacs scroll the window by 1 line whenever
;; the cursor moves off the visible screen.