summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLLoyderino <adrijan.bjedov@gmail.com>2025-05-31 23:22:37 +0200
committerLLoyderino <adrijan.bjedov@gmail.com>2025-05-31 23:23:42 +0200
commita6743d3f6db6b6a897b3de4eb5c4ccd5ecfa4715 (patch)
tree66c94f57d89a25998e5ac142e700a842f2383823
parente0847404a43796b5fc7ba286ba4500fd3f1595d9 (diff)
Use Emacs' built-in function for storing emacs-custom.el
-rw-r--r--init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.el b/init.el
index c67cdd0..aafe329 100644
--- a/init.el
+++ b/init.el
@@ -1,6 +1,6 @@
;; Please no custom file
-(setq custom-file "~/.emacs.d/emacs-custom.el")
-(load custom-file)
+(setq custom-file (locate-user-emacs-file "emacs-custom.el")
+(load custom-file 'noerror 'nomessage)
;; Start maximized
(add-to-list 'default-frame-alist '(fullscreen . maximized))