summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Roelli <charles@aurox.ch>2026-01-21 14:56:31 +0100
committerCharles Roelli <charles@aurox.ch>2026-01-21 14:56:31 +0100
commit3375b870c3b3a218e16da9506891e814fdf21077 (patch)
treedd841213b2b952a0ced38395a064e2e4724fb430
parent05998976e53cc19b958aa03cb06beaab8bc79e9b (diff)
Use a separate custom.el file
-rw-r--r--.emacs14
-rw-r--r--custom.el15
2 files changed, 17 insertions, 12 deletions
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.
+ )