From 36a1c6e7ece35bef316eefe01430f4393010f9bd Mon Sep 17 00:00:00 2001 From: Sako <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 27 Oct 2023 19:08:11 +0400 Subject: [PATCH] remove the stupid backup thingy in emacs --- config/emacs/emacs.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 89dc8e22..271d7976 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -58,6 +58,16 @@ M-x org-bable-tangle ;; repeat keybinds (repeat-mode) #+end_src +* Move backup (filename~.ending) files +#+begin_src emacs-lisp +(setq backup-directory-alist '(("." . "~/.emacs.d/backup")) + backup-by-copying t ; Don't delink hardlinks + version-control t ; Use version numbers on backups + delete-old-versions t ; Automatically delete excess backups + kept-new-versions 20 ; how many of the newest versions to keep + kept-old-versions 5 ; and how many of the old + ) +#+end_src * Fonts #+begin_src emacs-lisp (set-face-attribute `default nil :font "JetBrains Mono" :height 125)