[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guix SD and Emacs

From: Wolf
Subject: Re: Guix SD and Emacs
Date: Wed, 23 Nov 2022 21:25:20 +0100

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?


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

[Prev in Thread] Current Thread [Next in Thread]