]> git.earman.xyz Git - emacsinit.git/commitdiff
Set up trash system for linux
authorrush <rush@Thonkbook.com>
Fri, 19 Sep 2025 03:29:09 +0000 (23:29 -0400)
committerrush <rush@Thonkbook.com>
Fri, 19 Sep 2025 03:29:09 +0000 (23:29 -0400)
Always delete-by-moving-to-trash, and set trash-directory to "~/Trash" in linux.

init.el
re/re-os-specific.el

diff --git a/init.el b/init.el
index c23520dd03e71148a85a30e88bcc86a79f062ce0..85b6c62158dcfe4de89cf66eb9fe11653035ab38 100644 (file)
--- 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)
index 58059b6665b570acf7bacfc683919b15366c8669..df2976d1781a7a5167f0ab5c5ed92b706094d81c 100644 (file)
@@ -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)