On 2022-11-23 17:30:07 +0000, ( wrote:
> That's why I use this code to redirect all custom customisations into
> ~/.config/emacs/custom.el:
> 
>   (setq custom-file
>         (concat (or (getenv "XDG_CONFIG_HOME")
>                     (concat (getenv "HOME") "/.config"))
>                 "/emacs/custom.el"))
>   (load custom-file)

I'm totally new to emacs, so this might be very stupid question, but
based on the internets I've put the following into the init.el:

  (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
  (load-file custom-file)

Is there any practical difference or reason to prefer your version?

W.

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Attachment: signature.asc
Description: PGP signature

Reply via email to