From 425c4453df2e4c44fd9629c236eae1fa43fbd246 Mon Sep 17 00:00:00 2001 From: LLoyderino Date: Sun, 12 Apr 2026 21:00:29 +0200 Subject: Added more Emacs defaults improvements Yoinked from: https://emacsredux.com/blog/2026/04/07/stealing-from-the-best-emacs-configs/ --- init.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index dd5d617..aec05db 100644 --- a/init.el +++ b/init.el @@ -42,8 +42,21 @@ (use-package better-defaults ; It is important to run after vertico ; or it will run completion with ido :after vertico) +(setq help-window-select t) ; Automatically move cursor into help window +(setq kill-do-not-save-duplicates t) ; No duplicates in the kill ring + +;; Here’s a scenario: you copy a URL from your browser, switch to Emacs, kill a line with C-k, +;; and then try to yank the URL you copied earlier with C-y. Gone. The kill replaced it on the +;; clipboard. This setting makes Emacs save the existing clipboard content into the kill ring +;; before overwriting it: +(setq save-interprogram-paste-before-kill t) + (setq read-process-output-max (* 1024 1024 4)) ; Increase garbage collection threshold +(setq-default bidi-display-reordering 'left-to-right ; Disables bidirectional scanning + bidi-paragraph-direction 'left-to-right) ; aka. RTL language support +(setq bidi-inhibit-bpa t) + (use-package no-littering) ; Move litter to separate dirs (global-auto-revert-mode 1) ; Update files changed externally -- cgit v1.3.1