You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
;;==============;;;; Melpa config ;;;;==============;;
(require'package)
(add-to-list'package-archives '("melpa"."https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities`;; and `package-pinned-packages`. Most users will not need or want to do this.;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
Init
;; Update packages
(use-package auto-package-update
:ensuret:init
(setq auto-package-update-delete-old-versions t
auto-package-update-interval 4)
(auto-package-update-maybe))
;; Save backups inside a unique folder
(let ((backup-dir "~/.emacs/.backups")
(auto-saves-dir "~/.emacs/.backups"))
(dolist (dir (list backup-dir auto-saves-dir))
(when (not (file-directory-p dir))
(make-directory dir t)))
(setq backup-directory-alist `((".".,backup-dir))
auto-save-file-name-transforms `((".*",auto-saves-dirt))
auto-save-list-file-prefix (concat auto-saves-dir ".saves-")
tramp-backup-directory-alist `((".*".,backup-dir))
tramp-auto-save-directory auto-saves-dir))
(setq backup-by-copying t; Don't delink hardlinks
delete-old-versions t; Clean up the backups
version-control t; Use version numbers on backups,
kept-new-versions 10; keep some new versions
kept-old-versions 5) ; and some old ones, too;; Use so long mode to avoid slowing down emacs when file is big
(global-so-long-mode 1) ; Emacs >= 27