all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Guix SD and Emacs
@ 2022-11-23 17:16 Gottfried
  2022-11-23 17:30 ` (
  2022-11-24  4:16 ` Akib Azmain Turja
  0 siblings, 2 replies; 11+ messages in thread
From: Gottfried @ 2022-11-23 17:16 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 10660 bytes --]

Hi Guixers,

---------------------------------------------------
I have got 4 questions:
---------------------------------------------------
1.question

I created a "init.el" file for Emacs.

Where should it go in Guix SD?

I have got a hidden directory (or should I say "folder"?) in my user 
directory: .emacs.d
and a hidden file: .emacs

David Wilson proposed:
~/.config/emacs/init.el - Follows Linux desktop environment guidelines 
(recommended on Linux!)
This means to create a directory "emacs" in /.config directory
--------------------------------------------------

2.question

If I have questions about emacs where can I ask?
Guix help is for Guix, but where can I ask for emacs questions?

There won't be probably not many, but when I have time, I am working on 
setting up my emacs and am starting to use it more often.
--------------------------------------------------

3. question

in my created init.el file which I put into the directory /.emacs.de

for learning I added:

;; Display line numbers in every buffer
(global-display-line-numbers-mode 1)

When I press C+M x with the cursor between these lines there appear the 
line numbers immediately.

When I close emacs and open it again the lines don't appear.
This means that my init.el file is not read.
How can I configure this, so that everything I put into my init.el file 
will be recognised, when starting emacs?

----------------------------------------------------

4.question

To start with the right order structure,
( I like order without disorder)
I would like to put everything in my "init.el" file.

I choose the "misteriose-theme.el (on the startup screen: "customize 
startup")
it created a "misterios-theme.el" file in my /.emacs.d directory.
I thought it should go to the init.el file, which I have created later.
Can I copy the content of this file into the init.el file?

(deftheme misterioso
   "Predominantly blue/cyan faces on a dark cyan background.")

(custom-theme-set-faces
  'misterioso
  '(cursor ((((class color) (min-colors 89)) (:background "#415160"))))
  '(fringe ((((class color) (min-colors 89)) (:background "#2e3748"))))
  '(highlight ((((class color) (min-colors 89)) (:background "#338f86" 
:foreground "#e1e1e0"))))
  '(region ((((class color) (min-colors 89)) (:background "#2d4948" 
:foreground "#e1e1e0"))))
  '(isearch ((((class color) (min-colors 89)) (:background "#fcffad" 
:foreground "#000000"))))
  '(lazy-highlight ((((class color) (min-colors 89)) (:background 
"#338f86"))))
  '(trailing-whitespace ((((class color) (min-colors 89)) (:background 
"#ff4242"))))
  '(mode-line ((((class color) (min-colors 89)) (:background "#212931" 
:foreground "#eeeeec"))))
  '(mode-line-inactive ((((class color) (min-colors 89)) (:background 
"#878787" :foreground "#eeeeec"))))
  '(header-line ((((class color) (min-colors 89)) (:background "#808080" 
:foreground "#333333"))))
  '(minibuffer-prompt ((((class color) (min-colors 89)) (:foreground 
"#729fcf" :weight bold))))
  '(font-lock-builtin-face ((((class color) (min-colors 89)) 
(:foreground "#23d7d7"))))
  '(font-lock-comment-face ((((class color) (min-colors 89)) 
(:foreground "#74af68"))))
  '(font-lock-constant-face ((((class color) (min-colors 89)) 
(:foreground "#008b8b"))))
  '(font-lock-function-name-face ((((class color) (min-colors 89)) 
(:foreground "#00ede1" :weight bold))))
  '(font-lock-keyword-face ((((class color) (min-colors 89)) 
(:foreground "#ffad29" :weight bold))))
  '(font-lock-string-face ((((class color) (min-colors 89)) (:foreground 
"#e67128"))))
  '(font-lock-type-face ((((class color) (min-colors 89)) (:foreground 
"#34cae2"))))
  '(font-lock-variable-name-face ((((class color) (min-colors 89)) 
(:foreground "#dbdb95"))))
  '(font-lock-warning-face ((((class color) (min-colors 89)) 
(:foreground "#ff4242" :weight bold))))
  '(button ((((class color) (min-colors 89)) (:underline t))))
  '(link ((((class color) (min-colors 89)) (:foreground "#59e9ff" 
:underline t))))
  '(link-visited ((((class color) (min-colors 89)) (:foreground 
"#ed74cd" :underline t))))
  '(ediff-even-diff-A ((((class color) (min-colors 89)) (:background 
"#1d2430"))))
  '(ediff-even-diff-B ((((class color) (min-colors 89)) (:background 
"#1d2430"))))
  '(ediff-even-diff-C ((((class color) (min-colors 89)) (:background 
"#1d2430"))))
  '(ediff-odd-diff-A ((((class color) (min-colors 89)) (:background 
"#415160"))))
  '(ediff-odd-diff-B ((((class color) (min-colors 89)) (:background 
"#415160"))))
  '(ediff-odd-diff-C ((((class color) (min-colors 89)) (:background 
"#415160"))))
  '(gnus-group-news-1 ((((class color) (min-colors 89)) (:foreground 
"#ff4242" :weight bold))))
  '(gnus-group-news-1-low ((((class color) (min-colors 89)) (:foreground 
"#ff4242"))))
  '(gnus-group-news-2 ((((class color) (min-colors 89)) (:foreground 
"#00ede1" :weight bold))))
  '(gnus-group-news-2-low ((((class color) (min-colors 89)) (:foreground 
"#00ede1"))))
  '(gnus-group-news-3 ((((class color) (min-colors 89)) (:foreground 
"#23d7d7" :weight bold))))
  '(gnus-group-news-3-low ((((class color) (min-colors 89)) (:foreground 
"#23d7d7"))))
  '(gnus-group-news-4 ((((class color) (min-colors 89)) (:foreground 
"#74af68" :weight bold))))
  '(gnus-group-news-4-low ((((class color) (min-colors 89)) (:foreground 
"#74af68"))))
  '(gnus-group-news-5 ((((class color) (min-colors 89)) (:foreground 
"#dbdb95" :weight bold))))
  '(gnus-group-news-5-low ((((class color) (min-colors 89)) (:foreground 
"#dbdb95"))))
  '(gnus-group-news-low ((((class color) (min-colors 89)) (:foreground 
"#008b8b"))))
  '(gnus-group-mail-1 ((((class color) (min-colors 89)) (:foreground 
"#ff4242" :weight bold))))
  '(gnus-group-mail-1-low ((((class color) (min-colors 89)) (:foreground 
"#ff4242"))))
  '(gnus-group-mail-2 ((((class color) (min-colors 89)) (:foreground 
"#00ede1" :weight bold))))
  '(gnus-group-mail-2-low ((((class color) (min-colors 89)) (:foreground 
"#00ede1"))))
  '(gnus-group-mail-3 ((((class color) (min-colors 89)) (:foreground 
"#23d7d7" :weight bold))))
  '(gnus-group-mail-3-low ((((class color) (min-colors 89)) (:foreground 
"#23d7d7"))))
  '(gnus-group-mail-low ((((class color) (min-colors 89)) (:foreground 
"#008b8b"))))
  '(gnus-header-content ((((class color) (min-colors 89)) (:weight 
normal :foreground "#ffad29"))))
  '(gnus-header-from ((((class color) (min-colors 89)) (:foreground 
"#e67128" :weight bold))))
  '(gnus-header-subject ((((class color) (min-colors 89)) (:foreground 
"#dbdb95"))))
  '(gnus-header-name ((((class color) (min-colors 89)) (:foreground 
"#00ede1"))))
  '(gnus-header-newsgroups ((((class color) (min-colors 89)) 
(:foreground "#e67128"))))
  '(message-header-name ((((class color) (min-colors 89)) (:foreground 
"#ffad29" :weight bold))))
  '(message-header-cc ((((class color) (min-colors 89)) (:foreground 
"#e67128"))))
  '(message-header-other ((((class color) (min-colors 89)) (:foreground 
"#e67128"))))
  '(message-header-subject ((((class color) (min-colors 89)) 
(:foreground "#dbdb95"))))
  '(message-header-to ((((class color) (min-colors 89)) (:foreground 
"#00ede1"))))
  '(message-cited-text ((((class color) (min-colors 89)) (:foreground 
"#74af68"))))
  '(message-separator ((((class color) (min-colors 89)) (:foreground 
"#23d7d7"))))
  '(ansi-color-black ((((class color) (min-colors 89)) (:background 
"#2d3743" :foreground "#2d3743"))))
  '(ansi-color-red ((((class color) (min-colors 89)) (:background 
"#da3938" :foreground "#da3938"))))
  '(ansi-color-green ((((class color) (min-colors 89)) (:background 
"#74af68" :foreground "#74af68"))))
  '(ansi-color-yellow ((((class color) (min-colors 89)) (:background 
"#dbdb95" :foreground "#dbdb95"))))
  '(ansi-color-blue ((((class color) (min-colors 89)) (:background 
"#34cae2" :foreground "#34cae2"))))
  '(ansi-color-magenta ((((class color) (min-colors 89)) (:background 
"#b33c97" :foreground "#b33c97"))))
  '(ansi-color-cyan ((((class color) (min-colors 89)) (:background 
"#008b8b" :foreground "#008b8b"))))
  '(ansi-color-white ((((class color) (min-colors 89)) (:background 
"#e1e1e0" :foreground "#e1e1e0"))))
  '(ansi-color-bright-black ((((class color) (min-colors 89)) 
(:background "#415160" :foreground "#415160"))))
  '(ansi-color-bright-red ((((class color) (min-colors 89)) (:background 
"#ff4242" :foreground "#ff4242"))))
  '(ansi-color-bright-green ((((class color) (min-colors 89)) 
(:background "#74cd65" :foreground "#74cd65"))))
  '(ansi-color-bright-yellow ((((class color) (min-colors 89)) 
(:background "#ffad29" :foreground "#ffad29"))))
  '(ansi-color-bright-blue ((((class color) (min-colors 89)) 
(:background "#59e9ff" :foreground "#59e9ff"))))
  '(ansi-color-bright-magenta ((((class color) (min-colors 89)) 
(:background "#ed74cd" :foreground "#ed74cd"))))
  '(ansi-color-bright-cyan ((((class color) (min-colors 89)) 
(:background "#00ede1" :foreground "#00ede1"))))
  '(ansi-color-bright-white ((((class color) (min-colors 89)) 
(:background "#eeeeec" :foreground "#eeeeec"))))
  '(default ((((class color) (min-colors 4096)) (:background "#2d3743" 
:foreground "#e1e1e0")) (((class color) (min-colors 89)) (:background 
"#3a3a3a" :foreground "#e1e1e0")))))

(provide-theme 'misterioso)

----------------------------------------------------------------

in my /.emacs file there is this content:


(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)))))

Probably it was created, when I choose the new theme.

--------------------------------------------------------------------



Kind regards

Gottfried


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Guix SD and Emacs
  2022-11-23 17:16 Guix SD and Emacs Gottfried
@ 2022-11-23 17:30 ` (
  2022-11-23 20:25   ` Wolf
  2022-11-24  4:16 ` Akib Azmain Turja
  1 sibling, 1 reply; 11+ messages in thread
From: ( @ 2022-11-23 17:30 UTC (permalink / raw)
  To: Gottfried, help-guix

Heya,

On Wed Nov 23, 2022 at 5:16 PM GMT, Gottfried wrote:
> I have got a hidden directory (or should I say "folder"?) in my user 
> directory: .emacs.d
> and a hidden file: .emacs
>
> David Wilson proposed:
> ~/.config/emacs/init.el - Follows Linux desktop environment guidelines 
> (recommended on Linux!)
> This means to create a directory "emacs" in /.config directory

~/.config/emacs/init.el is best, but *if you have a .emacs.d or a .emacs,
it will not be read*, so you need to do this:

  mv .emacs ~/.config/emacs/init.el
  mv .emacs.d/* ~/.config/emacs

(careful your .emacs isn't overwritten with .emacs.d/init.el when using
these commands)

> If I have questions about emacs where can I ask?
> Guix help is for Guix, but where can I ask for emacs questions?
>
> There won't be probably not many, but when I have time, I am working on 
> setting up my emacs and am starting to use it more often.

All the GNU mailing lists can be found here:

[list of GNU lists] <https://lists.gnu.org/archive/html>

It shows that a help-gnu-emacs mailing list exists:

[help-gnu-emacs archives] <https://lists.gnu.org/archive/html/help-gnu-emacs>
[help-gnu-emacs subscribe page] <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>

> in my created init.el file which I put into the directory /.emacs.de
>
> for learning I added:
>
> ;; Display line numbers in every buffer
> (global-display-line-numbers-mode 1)
>
> When I press C+M x with the cursor between these lines there appear the 
> line numbers immediately.
>
> When I close emacs and open it again the lines don't appear.
> This means that my init.el file is not read.
> How can I configure this, so that everything I put into my init.el file 
> will be recognised, when starting emacs?

Probably because you already have a .emacs. Emacs prioritises reading the
.emacs file over .emacs.d/init.el, and .emacs.d/init.el over
.config/emacs/init.el. If you want to use .emacs.d/init.el, you need to
make sure there's no .emacs.

> I choose the "misteriose-theme.el (on the startup screen: "customize 
> startup")
> it created a "misterios-theme.el" file in my /.emacs.d directory.
> I thought it should go to the init.el file, which I have created later.
> Can I copy the content of this file into the init.el file?

You don't want to do that. It's an autogenerated file, and you should
keep those in separate files, in my opinion, so that you don't
accidentally modify things that should not be modified :)

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)

> (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)))))
>
> Probably it was created, when I choose the new theme.

Yes, it was. If you decide to do the custom-file redirection above,
you should move this code into ~/.config/emacs/custom.el.

  -- (


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Guix SD and Emacs
  2022-11-23 17:30 ` (
@ 2022-11-23 20:25   ` Wolf
  2022-11-23 21:47     ` Felix Lechner via
                       ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Wolf @ 2022-11-23 20:25 UTC (permalink / raw)
  To: (; +Cc: Gottfried, help-guix

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Guix SD and Emacs
  2022-11-23 20:25   ` Wolf
@ 2022-11-23 21:47     ` Felix Lechner via
  2022-11-23 22:29     ` (
  2022-11-24  4:20     ` Akib Azmain Turja
  2 siblings, 0 replies; 11+ messages in thread
From: Felix Lechner via @ 2022-11-23 21:47 UTC (permalink / raw)
  To: (, Gottfried, help-guix

Hi,

On Wed, Nov 23, 2022 at 12:59 PM Wolf <wolf@wolfsden.cz> wrote:
>
>   (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
>   (load-file custom-file)

My init file also looks like that.

Kind regards
Felix Lechner


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Guix SD and Emacs
  2022-11-23 20:25   ` Wolf
  2022-11-23 21:47     ` Felix Lechner via
@ 2022-11-23 22:29     ` (
  2022-11-24  4:20     ` Akib Azmain Turja
  2 siblings, 0 replies; 11+ messages in thread
From: ( @ 2022-11-23 22:29 UTC (permalink / raw)
  To: Wolf; +Cc: Gottfried, help-guix

On Wed Nov 23, 2022 at 8:25 PM GMT, Wolf wrote:
>   (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
>   (load-file custom-file)

Oh, I didn't know about this! Thanks!

    -- (


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Guix SD and Emacs
  2022-11-23 17:16 Guix SD and Emacs Gottfried
  2022-11-23 17:30 ` (
@ 2022-11-24  4:16 ` Akib Azmain Turja
  2022-11-24 14:29   ` Gottfried
  1 sibling, 1 reply; 11+ messages in thread
From: Akib Azmain Turja @ 2022-11-24  4:16 UTC (permalink / raw)
  To: Gottfried; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 11986 bytes --]

Gottfried <gottfried@posteo.de> writes:

> Hi Guixers,
>
> ---------------------------------------------------
> I have got 4 questions:
> ---------------------------------------------------
> 1.question
>
> I created a "init.el" file for Emacs.
>
> Where should it go in Guix SD?
>
> I have got a hidden directory (or should I say "folder"?) in my user
> directory: .emacs.d
> and a hidden file: .emacs
>
> David Wilson proposed:
> ~/.config/emacs/init.el - Follows Linux desktop environment guidelines
> (recommended on Linux!)
> This means to create a directory "emacs" in /.config directory
> --------------------------------------------------

~/.emacs.d/init.el:             Works.
~/.emacs:                       Works.
~/.config/emacs/init.el:        Works, and I'm using it.

>
> 2.question
>
> If I have questions about emacs where can I ask?
> Guix help is for Guix, but where can I ask for emacs questions?
>
> There won't be probably not many, but when I have time, I am working
> on setting up my emacs and am starting to use it more often.
> --------------------------------------------------

help-gnu-emacs list.

>
> 3. question
>
> in my created init.el file which I put into the directory /.emacs.de
>
> for learning I added:
>
> ;; Display line numbers in every buffer
> (global-display-line-numbers-mode 1)
>
> When I press C+M x with the cursor between these lines there appear
> the line numbers immediately.
>
> When I close emacs and open it again the lines don't appear.
> This means that my init.el file is not read.
> How can I configure this, so that everything I put into my init.el
> file will be recognised, when starting emacs?
>
> ----------------------------------------------------

Where did you put your init.el?  How are you invoking the Emacs command?

>
> 4.question
>
> To start with the right order structure,
> ( I like order without disorder)
> I would like to put everything in my "init.el" file.
>
> I choose the "misteriose-theme.el (on the startup screen: "customize
> startup")
> it created a "misterios-theme.el" file in my /.emacs.d directory.
> I thought it should go to the init.el file, which I have created later.
> Can I copy the content of this file into the init.el file?
>
> (deftheme misterioso
>   "Predominantly blue/cyan faces on a dark cyan background.")
>
> (custom-theme-set-faces
>  'misterioso
>  '(cursor ((((class color) (min-colors 89)) (:background "#415160"))))
>  '(fringe ((((class color) (min-colors 89)) (:background "#2e3748"))))
>  '(highlight ((((class color) (min-colors 89)) (:background "#338f86"
>  :foreground "#e1e1e0"))))
>  '(region ((((class color) (min-colors 89)) (:background "#2d4948"
>  :foreground "#e1e1e0"))))
>  '(isearch ((((class color) (min-colors 89)) (:background "#fcffad"
>  :foreground "#000000"))))
>  '(lazy-highlight ((((class color) (min-colors 89)) (:background
>  "#338f86"))))
>  '(trailing-whitespace ((((class color) (min-colors 89)) (:background
>  "#ff4242"))))
>  '(mode-line ((((class color) (min-colors 89)) (:background "#212931"
>  :foreground "#eeeeec"))))
>  '(mode-line-inactive ((((class color) (min-colors 89)) (:background
>  "#878787" :foreground "#eeeeec"))))
>  '(header-line ((((class color) (min-colors 89)) (:background
>  "#808080" :foreground "#333333"))))
>  '(minibuffer-prompt ((((class color) (min-colors 89)) (:foreground
>  "#729fcf" :weight bold))))
>  '(font-lock-builtin-face ((((class color) (min-colors 89))
>  (:foreground "#23d7d7"))))
>  '(font-lock-comment-face ((((class color) (min-colors 89))
>  (:foreground "#74af68"))))
>  '(font-lock-constant-face ((((class color) (min-colors 89))
>  (:foreground "#008b8b"))))
>  '(font-lock-function-name-face ((((class color) (min-colors 89))
>  (:foreground "#00ede1" :weight bold))))
>  '(font-lock-keyword-face ((((class color) (min-colors 89))
>  (:foreground "#ffad29" :weight bold))))
>  '(font-lock-string-face ((((class color) (min-colors 89))
>  (:foreground "#e67128"))))
>  '(font-lock-type-face ((((class color) (min-colors 89)) (:foreground
>  "#34cae2"))))
>  '(font-lock-variable-name-face ((((class color) (min-colors 89))
>  (:foreground "#dbdb95"))))
>  '(font-lock-warning-face ((((class color) (min-colors 89))
>  (:foreground "#ff4242" :weight bold))))
>  '(button ((((class color) (min-colors 89)) (:underline t))))
>  '(link ((((class color) (min-colors 89)) (:foreground "#59e9ff"
>  :underline t))))
>  '(link-visited ((((class color) (min-colors 89)) (:foreground
>  "#ed74cd" :underline t))))
>  '(ediff-even-diff-A ((((class color) (min-colors 89)) (:background
>  "#1d2430"))))
>  '(ediff-even-diff-B ((((class color) (min-colors 89)) (:background
>  "#1d2430"))))
>  '(ediff-even-diff-C ((((class color) (min-colors 89)) (:background
>  "#1d2430"))))
>  '(ediff-odd-diff-A ((((class color) (min-colors 89)) (:background
>  "#415160"))))
>  '(ediff-odd-diff-B ((((class color) (min-colors 89)) (:background
>  "#415160"))))
>  '(ediff-odd-diff-C ((((class color) (min-colors 89)) (:background
>  "#415160"))))
>  '(gnus-group-news-1 ((((class color) (min-colors 89)) (:foreground
>  "#ff4242" :weight bold))))
>  '(gnus-group-news-1-low ((((class color) (min-colors 89))
>  (:foreground "#ff4242"))))
>  '(gnus-group-news-2 ((((class color) (min-colors 89)) (:foreground
>  "#00ede1" :weight bold))))
>  '(gnus-group-news-2-low ((((class color) (min-colors 89))
>  (:foreground "#00ede1"))))
>  '(gnus-group-news-3 ((((class color) (min-colors 89)) (:foreground
>  "#23d7d7" :weight bold))))
>  '(gnus-group-news-3-low ((((class color) (min-colors 89))
>  (:foreground "#23d7d7"))))
>  '(gnus-group-news-4 ((((class color) (min-colors 89)) (:foreground
>  "#74af68" :weight bold))))
>  '(gnus-group-news-4-low ((((class color) (min-colors 89))
>  (:foreground "#74af68"))))
>  '(gnus-group-news-5 ((((class color) (min-colors 89)) (:foreground
>  "#dbdb95" :weight bold))))
>  '(gnus-group-news-5-low ((((class color) (min-colors 89))
>  (:foreground "#dbdb95"))))
>  '(gnus-group-news-low ((((class color) (min-colors 89)) (:foreground
>  "#008b8b"))))
>  '(gnus-group-mail-1 ((((class color) (min-colors 89)) (:foreground
>  "#ff4242" :weight bold))))
>  '(gnus-group-mail-1-low ((((class color) (min-colors 89))
>  (:foreground "#ff4242"))))
>  '(gnus-group-mail-2 ((((class color) (min-colors 89)) (:foreground
>  "#00ede1" :weight bold))))
>  '(gnus-group-mail-2-low ((((class color) (min-colors 89))
>  (:foreground "#00ede1"))))
>  '(gnus-group-mail-3 ((((class color) (min-colors 89)) (:foreground
>  "#23d7d7" :weight bold))))
>  '(gnus-group-mail-3-low ((((class color) (min-colors 89))
>  (:foreground "#23d7d7"))))
>  '(gnus-group-mail-low ((((class color) (min-colors 89)) (:foreground
>  "#008b8b"))))
>  '(gnus-header-content ((((class color) (min-colors 89)) (:weight
>  normal :foreground "#ffad29"))))
>  '(gnus-header-from ((((class color) (min-colors 89)) (:foreground
>  "#e67128" :weight bold))))
>  '(gnus-header-subject ((((class color) (min-colors 89)) (:foreground
>  "#dbdb95"))))
>  '(gnus-header-name ((((class color) (min-colors 89)) (:foreground
>  "#00ede1"))))
>  '(gnus-header-newsgroups ((((class color) (min-colors 89))
>  (:foreground "#e67128"))))
>  '(message-header-name ((((class color) (min-colors 89)) (:foreground
>  "#ffad29" :weight bold))))
>  '(message-header-cc ((((class color) (min-colors 89)) (:foreground
>  "#e67128"))))
>  '(message-header-other ((((class color) (min-colors 89)) (:foreground
>  "#e67128"))))
>  '(message-header-subject ((((class color) (min-colors 89))
>  (:foreground "#dbdb95"))))
>  '(message-header-to ((((class color) (min-colors 89)) (:foreground
>  "#00ede1"))))
>  '(message-cited-text ((((class color) (min-colors 89)) (:foreground
>  "#74af68"))))
>  '(message-separator ((((class color) (min-colors 89)) (:foreground
>  "#23d7d7"))))
>  '(ansi-color-black ((((class color) (min-colors 89)) (:background
>  "#2d3743" :foreground "#2d3743"))))
>  '(ansi-color-red ((((class color) (min-colors 89)) (:background
>  "#da3938" :foreground "#da3938"))))
>  '(ansi-color-green ((((class color) (min-colors 89)) (:background
>  "#74af68" :foreground "#74af68"))))
>  '(ansi-color-yellow ((((class color) (min-colors 89)) (:background
>  "#dbdb95" :foreground "#dbdb95"))))
>  '(ansi-color-blue ((((class color) (min-colors 89)) (:background
>  "#34cae2" :foreground "#34cae2"))))
>  '(ansi-color-magenta ((((class color) (min-colors 89)) (:background
>  "#b33c97" :foreground "#b33c97"))))
>  '(ansi-color-cyan ((((class color) (min-colors 89)) (:background
>  "#008b8b" :foreground "#008b8b"))))
>  '(ansi-color-white ((((class color) (min-colors 89)) (:background
>  "#e1e1e0" :foreground "#e1e1e0"))))
>  '(ansi-color-bright-black ((((class color) (min-colors 89))
>  (:background "#415160" :foreground "#415160"))))
>  '(ansi-color-bright-red ((((class color) (min-colors 89))
>  (:background "#ff4242" :foreground "#ff4242"))))
>  '(ansi-color-bright-green ((((class color) (min-colors 89))
>  (:background "#74cd65" :foreground "#74cd65"))))
>  '(ansi-color-bright-yellow ((((class color) (min-colors 89))
>  (:background "#ffad29" :foreground "#ffad29"))))
>  '(ansi-color-bright-blue ((((class color) (min-colors 89))
>  (:background "#59e9ff" :foreground "#59e9ff"))))
>  '(ansi-color-bright-magenta ((((class color) (min-colors 89))
>  (:background "#ed74cd" :foreground "#ed74cd"))))
>  '(ansi-color-bright-cyan ((((class color) (min-colors 89))
>  (:background "#00ede1" :foreground "#00ede1"))))
>  '(ansi-color-bright-white ((((class color) (min-colors 89))
>  (:background "#eeeeec" :foreground "#eeeeec"))))
>  '(default ((((class color) (min-colors 4096)) (:background "#2d3743"
>  :foreground "#e1e1e0")) (((class color) (min-colors 89)) (:background
>  "#3a3a3a" :foreground "#e1e1e0")))))
>
> (provide-theme 'misterioso)
>
> ----------------------------------------------------------------
>
> in my /.emacs file there is this content:
>
>
> (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)))))
>
> Probably it was created, when I choose the new theme.
>
> --------------------------------------------------------------------

You can indeed put the theme in your init.el.

But I would recommend against it, because as a Emacs newcomer, your
config might grow too big for you to manage.  From my experience, too
big init.el is one of the main reasons behind declaring Emacs bankruptcy
(throwing your current init.el and starting a new one).  So I recommend
to keep theme independent of your init.el, so that if you ever declare
Emacs bankruptcy, that file will be reusable.

>
>
>
> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Guix SD and Emacs
  2022-11-23 20:25   ` Wolf
  2022-11-23 21:47     ` Felix Lechner via
  2022-11-23 22:29     ` (
@ 2022-11-24  4:20     ` Akib Azmain Turja
  2 siblings, 0 replies; 11+ messages in thread
From: Akib Azmain Turja @ 2022-11-24  4:20 UTC (permalink / raw)
  To: (; +Cc: Gottfried, help-guix

[-- Attachment #1: Type: text/plain, Size: 1304 bytes --]

Wolf <wolf@wolfsden.cz> writes:

> 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.

No, I think yours one is better, because it's OS independent.  I can
suggest the following, which basically the same but will save you a few
byte on your HDD/SSD:

--8<---------------cut here---------------start------------->8---
(setq custom-file (locate-user-emacs-file "custom.el"))
(load-file custom-file)
--8<---------------cut here---------------end--------------->8---

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Guix SD and Emacs
  2022-11-24  4:16 ` Akib Azmain Turja
@ 2022-11-24 14:29   ` Gottfried
  2022-11-24 14:33     ` (
  2022-11-25  7:45     ` Akib Azmain Turja
  0 siblings, 2 replies; 11+ messages in thread
From: Gottfried @ 2022-11-24 14:29 UTC (permalink / raw)
  To: Akib Azmain Turja, (; +Cc: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 2246 bytes --]

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.
-------------------------------------------------------------
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.
What goes than in my init.el file?

2. question

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

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




[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Guix SD and Emacs
  2022-11-24 14:29   ` Gottfried
@ 2022-11-24 14:33     ` (
  2022-11-25  7:45     ` Akib Azmain Turja
  1 sibling, 0 replies; 11+ messages in thread
From: ( @ 2022-11-24 14:33 UTC (permalink / raw)
  To: Gottfried, Akib Azmain Turja; +Cc: help-guix

On Thu Nov 24, 2022 at 2:29 PM GMT, Gottfried wrote:
> 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.
> What goes than in my init.el file?

Any elisp code you write *manually*. custom.el contains all the code automatically
generated by the Emacs "custom" tool.

> Should I simply delete this file, and create this theme new?

Probably, yeah.

    -- (


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Guix SD and Emacs
  2022-11-24 14:29   ` Gottfried
  2022-11-24 14:33     ` (
@ 2022-11-25  7:45     ` Akib Azmain Turja
  2022-11-25 19:12       ` Gottfried
  1 sibling, 1 reply; 11+ messages in thread
From: Akib Azmain Turja @ 2022-11-25  7:45 UTC (permalink / raw)
  To: Gottfried; +Cc: (, help-guix

[-- Attachment #1: Type: text/plain, Size: 2929 bytes --]


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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Guix SD and Emacs
  2022-11-25  7:45     ` Akib Azmain Turja
@ 2022-11-25 19:12       ` Gottfried
  0 siblings, 0 replies; 11+ messages in thread
From: Gottfried @ 2022-11-25 19:12 UTC (permalink / raw)
  To: Akib Azmain Turja; +Cc: (, help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 1433 bytes --]

Hi Akib,

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

I tried several things,learning to use emacs and now my theme is working.

I have got now 2 themes in my ~/.config/emacs directory

leuven-theme.el
misterioso-theme.el

but misterioso-theme is now working.
-------------------------------------------------------
How can I check in emacs which theme I have got at the moment?
Which keybindings?
-------------------------------------------------------
If I want an other theme, how to do that?
(Should I better ask in the emacs mailing list?)

Kind regards

Gottfried





Am 25.11.22 um 08:45 schrieb Akib Azmain Turja:
> 
> 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
and leuven-theme.el




[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-11-25 19:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23 17:16 Guix SD and Emacs Gottfried
2022-11-23 17:30 ` (
2022-11-23 20:25   ` Wolf
2022-11-23 21:47     ` Felix Lechner via
2022-11-23 22:29     ` (
2022-11-24  4:20     ` Akib Azmain Turja
2022-11-24  4:16 ` Akib Azmain Turja
2022-11-24 14:29   ` Gottfried
2022-11-24 14:33     ` (
2022-11-25  7:45     ` Akib Azmain Turja
2022-11-25 19:12       ` Gottfried

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.