From bb99bec16df1638e1ddf57e5b3c860f1003a169b Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Thu, 17 Jul 2025 01:00:20 +0300 Subject: emacs: miscellaneous extra settings --- emacs/.config/emacs/early-init.el | 2 ++ emacs/.config/emacs/init.el | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/emacs/.config/emacs/early-init.el b/emacs/.config/emacs/early-init.el index 6757f7b..6892501 100644 --- a/emacs/.config/emacs/early-init.el +++ b/emacs/.config/emacs/early-init.el @@ -13,6 +13,8 @@ (setq selection-coding-system 'utf-8 default-input-method nil) +(setq load-prefer-newer t) + (setq user-emacs-directory (file-name-directory load-file-name)) (add-to-list 'load-path (expand-file-name "arkta" user-emacs-directory)) diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el index 8fd9b2c..520c254 100644 --- a/emacs/.config/emacs/init.el +++ b/emacs/.config/emacs/init.el @@ -51,6 +51,7 @@ (auto-mode-case-fold nil) (auto-save-file-name-transforms `((".*" ,tmp-dir t))) (backup-directory-alist `((".*" . ,tmp-dir))) + (confirm-kill-emacs #'yes-or-no-p) (major-mode-remap-alist '((c-mode . c-ts-mode) (c-or-c++-mode . c-or-c++-ts-mode) (c++-mode . c++-ts-mode) @@ -71,6 +72,7 @@ (toml-mode . toml-ts-mode) (tsx-mode . tsx-ts-mode) (typescript-mode . typescript-ts-mode))) + (require-final-newline t) :config (advice-add #'locate-user-emacs-file :around #'$adv-write-to-sane-paths)) @@ -128,6 +130,11 @@ (initial-major-mode 'fundamental-mode) (initial-scratch-message nil)) +(setq delete-by-moving-to-trash t) +(setq show-trailing-whitespace t) + +(setq-default word-wrap t) + ;; Don't draw stuff in other windows. (setq-default cursor-in-non-selected-windows nil) (setq highlight-nonselected-windows nil) -- cgit v1.2.3