From 52552127961a8faeab715151c400ba7490d4eaf4 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 28 May 2025 14:33:39 +0200 Subject: [PATCH] config/doom: small modernisations --- .config/doom/config.el | 12 ++++++++++++ .config/doom/init.el | 6 ++++-- .config/doom/user.el##user.janek | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index 99d3601..995e41a 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -1247,6 +1247,18 @@ This is 0.3 red + 0.59 green + 0.11 blue and always between 0 and 255." (ispell-hunspell-add-multi-dic ispell-dictionary) ) +(defun ediff-compare-region-clipboard (begin end) + (interactive "r") + (save-excursion + (let ((selected-region (buffer-substring begin end)) + (clipboard-buffer (get-buffer-create "*ediff-clipboard*")) + (region-buffer (get-buffer-create "*ediff-region*"))) + (with-current-buffer clipboard-buffer + (insert (car kill-ring))) + (with-current-buffer region-buffer + (insert selected-region)) + (ediff-buffers clipboard-buffer region-buffer)))) + ; uncomment this to exit loading the config prematurely ;(with-current-buffer " *load*" ; (goto-char (point-max))) diff --git a/.config/doom/init.el b/.config/doom/init.el index e8f73f1..548c605 100644 --- a/.config/doom/init.el +++ b/.config/doom/init.el @@ -21,9 +21,11 @@ :completion company ; the ultimate code completion backend + ;;corfu ;;helm ; the *other* search engine for love and life ;;ido ; the other *other* search engine... - ivy ; a search engine for love and life + ;;ivy ; a search engine for love and life + vertico :ui ;;deft ; notational velocity for Emacs @@ -34,7 +36,7 @@ hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW ;;hydra indent-guides ; highlighted indent columns - ;;ligatures ; ligatures and symbols to make your code pretty again + ligatures ; ligatures and symbols to make your code pretty again minimap ; show a map of the code on the side modeline ; snazzy, Atom-inspired modeline, plus API nav-flash ; blink cursor line after big motions diff --git a/.config/doom/user.el##user.janek b/.config/doom/user.el##user.janek index 9121c6a..4610eec 100644 --- a/.config/doom/user.el##user.janek +++ b/.config/doom/user.el##user.janek @@ -41,4 +41,5 @@ (add-to-list 'recentf-list (expand-file-name "5-incubator/download/" user-data-dir)) (setq recentf-list (append (list-non-hidden-directories user-data-dir) recentf-list)) (setq recentf-keep '(recentf-keep-default-predicate file-remote-p "/ssh:.*")) + (recentf-cleanup) )