From 3375b870c3b3a218e16da9506891e814fdf21077 Mon Sep 17 00:00:00 2001 From: Charles Roelli Date: Wed, 21 Jan 2026 14:56:31 +0100 Subject: Use a separate custom.el file --- .emacs | 14 ++------------ custom.el | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 custom.el diff --git a/.emacs b/.emacs index 8b03e09..19f39be 100644 --- a/.emacs +++ b/.emacs @@ -1,15 +1,5 @@ (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) +(setq custom-file "~/Code/home/custom.el") +(load custom-file) (package-initialize) -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(package-selected-packages '(ledger-mode))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - ) diff --git a/custom.el b/custom.el new file mode 100644 index 0000000..f8a297c --- /dev/null +++ b/custom.el @@ -0,0 +1,15 @@ +;;; -*- lexical-binding: t -*- +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(backup-directory-alist '(("." . "~/Backups"))) + '(custom-file "~/Code/home/custom.el") + '(package-selected-packages '(ledger-mode))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) -- cgit v1.3