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