From 0b78f5ca58f307df8a13f129fe097552532c6eed Mon Sep 17 00:00:00 2001 From: rush Date: Thu, 18 Sep 2025 23:29:09 -0400 Subject: [PATCH] Set up trash system for linux Always delete-by-moving-to-trash, and set trash-directory to "~/Trash" in linux. --- init.el | 2 ++ re/re-os-specific.el | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index c23520d..85b6c62 100644 --- a/init.el +++ b/init.el @@ -37,6 +37,8 @@ (column-number-mode t) (size-indication-mode t) +(setq delete-by-moving-to-trash t) + ;; Buffer dealiŋ (delete-selection-mode t) (global-acme-mouse-mode t) diff --git a/re/re-os-specific.el b/re/re-os-specific.el index 58059b6..df2976d 100644 --- a/re/re-os-specific.el +++ b/re/re-os-specific.el @@ -4,7 +4,7 @@ ;;; Code: (when (equal system-type 'windows-nt) - (setq delete-by-moving-to-trash t w32-recognize-altgr 'nil) + (setq w32-recognize-altgr 'nil) (defun re/unfuck-aveva-license nil "Remove the offending xml files. Use this when aveva can't find ass with both hands." @@ -15,6 +15,7 @@ Use this when aveva can't find ass with both hands." (when (file-exists-p xml2) (delete-file xml2))))) (unless (equal system-type 'windows-nt) + (setq trash-directory "~/Trash/") (defun doas nil "Use TRAMP to reopen the current buffer as root using doas." (interactive) -- 2.39.5