@@ -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
|
||||||
|
|||||||
21
init.el
21
init.el
@@ -20,15 +20,15 @@
|
|||||||
;;; Before package
|
;;; Before package
|
||||||
|
|
||||||
;; Increase how much is read from processes in a single chunk
|
;; 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.
|
;; Don't ping things that look like domain names.
|
||||||
(setq ffap-machine-p-known 'reject)
|
(setq ffap-machine-p-known 'reject)
|
||||||
|
|
||||||
;;; Undo/redo
|
;;; Undo/redo
|
||||||
|
|
||||||
;; Increase undo limits to prevent early garbage collection from aggressively
|
|
||||||
;; truncating undo history
|
|
||||||
(setq undo-limit (* 13 160000)
|
(setq undo-limit (* 13 160000)
|
||||||
undo-strong-limit (* 13 240000)
|
undo-strong-limit (* 13 240000)
|
||||||
undo-outer-limit (* 13 24000000))
|
undo-outer-limit (* 13 24000000))
|
||||||
@@ -115,8 +115,7 @@
|
|||||||
;; but may reduce visual feedback.
|
;; but may reduce visual feedback.
|
||||||
(setq redisplay-skip-fontification-on-input t)
|
(setq redisplay-skip-fontification-on-input t)
|
||||||
|
|
||||||
;; Collects and displays all available documentation immediately, even if
|
;; Collects and displays all available documentation immediately
|
||||||
;; multiple sources provide it. It concatenates the results.
|
|
||||||
(setq eldoc-documentation-strategy 'eldoc-documentation-compose-eagerly)
|
(setq eldoc-documentation-strategy 'eldoc-documentation-compose-eagerly)
|
||||||
|
|
||||||
;; Disable truncation of printed s-expressions in the message buffer
|
;; Disable truncation of printed s-expressions in the message buffer
|
||||||
@@ -130,6 +129,7 @@
|
|||||||
|
|
||||||
;; Delete by moving to trash in interactive mode
|
;; Delete by moving to trash in interactive mode
|
||||||
(setq delete-by-moving-to-trash (not noninteractive))
|
(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
|
;; 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.
|
;; acceptable since it will redirect you to the existing buffer regardless.
|
||||||
@@ -231,11 +231,14 @@
|
|||||||
;;; savehist
|
;;; savehist
|
||||||
|
|
||||||
;; `savehist-mode' is an Emacs feature that preserves the minibuffer history
|
;; `savehist-mode' is an Emacs feature that preserves the minibuffer history
|
||||||
;; between sessions. It saves the history of inputs in the minibuffer, such as
|
;; between sessions.
|
||||||
;; commands, search strings, and other prompts, to a file. This allows users to
|
|
||||||
;; retain their minibuffer history across Emacs restarts.
|
|
||||||
(setq history-length 300)
|
(setq history-length 300)
|
||||||
(setq savehist-save-minibuffer-history t) ;; Default
|
(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
|
;;; Frames and windows
|
||||||
|
|
||||||
@@ -276,7 +279,7 @@
|
|||||||
;; window is never automatically recentered. The default value of 0 triggers
|
;; window is never automatically recentered. The default value of 0 triggers
|
||||||
;; recentering too aggressively. Setting it to 10 reduces excessive recentering
|
;; recentering too aggressively. Setting it to 10 reduces excessive recentering
|
||||||
;; and only recenters the window when scrolling significantly off-screen.
|
;; 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
|
;; Enables smooth scrolling by making Emacs scroll the window by 1 line whenever
|
||||||
;; the cursor moves off the visible screen.
|
;; the cursor moves off the visible screen.
|
||||||
|
|||||||
Reference in New Issue
Block a user