1 hour ago · 6 min read1127 words · Tech · hide · 0 comments

Part four of Emacs Config Gems is about basic file operations and save functions. I realized as I was working on this that I have the frame configuration here, which is the wrong place for it. I will change it after posting. Alright, here we go. When deleting a file in Emacs, we should use the system’s trash (or recycle bin) instead of deleting the file permanently, giving us a chance to restore the file in case we’ve made a mistake. In addition, since we have this turned on, we can also tell Emacs to always delete non-empty directories (because they’ll go to the trash) instead of prompting. It’s just faster. (setq delete-by-moving-to-trash t) (setq dired-recursive-deletes 'always) Let’s set the frame Emacs starts with to be a bit bigger. In Emacs, these measurements are in lines and columns (character width), so we’re basically saying: “make the default frame 100 characters wide and 55 lines high.”1 (setq default-frame-alist '((width . 100) (height . 55)) ) We might want to move…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.