help-guix
[Top][All Lists]
Advanced

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

Re: Guix SD and Emacs


From: Akib Azmain Turja
Subject: Re: Guix SD and Emacs
Date: Fri, 25 Nov 2022 13:45:18 +0600

I think help-gnu-emacs should be a better place for discussion.

Gottfried <gottfried@posteo.de> writes:

> Thanks for your answers.
>
> I created a "init.el" file in ~/.config/emacs
>
> and a "custom.el" file in the same directory.
>
> I moved my .emacs.d to ~/.config/emacs and deleted later the empty
> ~/.emacs.d directory and the ~/.emacs file.

Great!

> -------------------------------------------------------------
> So, I have now everything in the ~/.config/emacs directory
>
> directories:
>
> auto-save-list
> eln-cache
> elpa
> tutorial
> url
>
> and the files:
>
> custom.el
> init.el
> misterioso-theme.el
> -------------------------------------------------------------
> custom.el:
> (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
>   (load-file custom-file)
>
> (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.
>  '(ansi-color-faces-vector
>    [default default default italic underline success warning error])
>  '(ansi-color-names-vector
>    ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566"
>    "#729fcf" "#eeeeec"])
>  '(custom-enabled-themes '(tsdh-dark whiteboard))
>  '(font-use-system-font t))
> (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.
>  '(default ((t (:family "DejaVu Sans Mono" :foundry "PfEd" :slant
>  normal :weight normal :height 120 :width normal)))))
>
> -------------------------------------------------------
> init.el:
> ;; Display line numbers in every buffer
> (global-display-line-numbers-mode 1)
> --------------------------------------------------------
> 1. question
>
> So, as far as I understood you, I should do all my customisation in my
> custom.el file and not in the init.el file.

No, custom.el should be auto-generated by Custom, the customization UI.
If you want keep everything in one file, don't set custom-file variable.

> What goes than in my init.el file?

All your hand-written configuration.

>
> 2. question
>
> I have got a "misterioso-theme.el" file in my ~/.config/emacs directory
> but it doesn't work now.

Why doesn't it work?  Are you loading the theme correctly?

>
> Should I simply delete this file, and create this theme new?
> If so, what is the best way to create this theme or an other?
>
>
> Kind regards
>
> Gottfried

-- 
Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
Fediverse: akib@hostux.social
Codeberg: akib
emailselfdefense.fsf.org | "Nothing can be secure without encryption."

Attachment: signature.asc
Description: PGP signature


reply via email to

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