alezost / guix.el

Emacs interface for GNU Guix package manager
https://emacs-guix.gitlab.io/website/
GNU General Public License v3.0
139 stars 16 forks source link

latex-mode takes a precedence on .drv files in auto-mode-alist #12

Closed wigust closed 6 years ago

wigust commented 6 years ago

Hello,

Our derivation mode has a conflict probably with auctex in auto-mode-alist. The latex-mode from auctex takes a precedence. Is it our or auctex problem?

natsu@magnolia ~/src/emacs-guix$ find -L ~/.guix-profile/share/emacs | xargs grep drv 2>/dev/null
Binary file /home/natsu/.guix-profile/share/emacs/site-lisp/guix-build-config.elc matches
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex.el:(add-to-list 'auto-mode-alist '("\\.drv\\'" . latex-mode))
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/style/shortvrb.el:;; the style list is empty.  In its master file, preview.drv, it
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/auctex-autoloads.el:(add-to-list 'auto-mode-alist '("\\.drv\\'" . latex-mode))
Binary file /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex.elc matches
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/preview.dtx:%<installer>    \file{preview.drv}{\from{preview.dtx}{driver}}
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/preview.dtx:% TeX-master: "preview.drv"
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/.gitignore:*.drv
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:all: $(TEXMFGEN) preview.drv preview-mk.ins preview.dvi preview.pdf
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:$(TEXMFGEN) preview.drv: preview.dtx preview-mk.ins
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:preview.dvi: preview.drv preview.dtx preview.sty
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:    $(LATEX) '\nonstopmode \input preview.drv'
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:    $(LATEX) '\nonstopmode \input preview.drv'
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:    $(LATEX) '\nonstopmode \input preview.drv'
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:preview.pdf: preview.drv preview.dtx preview.sty
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:    $(PDFLATEX) '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}'
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:    $(PDFLATEX) '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}'
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:    $(PDFLATEX) '\nonstopmode \AtBeginDocument{\OnlyDescription}\input{preview.drv}'
/home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/latex/Makefile.in:    rm -f *~ *.aux *.dvi *.drv *.log
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-derivation.el:;; derivation files (*.drv).
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-derivation.el:(defface guix-derivation-drv-file-name
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-derivation.el:  "Face for '*.drv' store file names."
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-derivation.el:  '(("\\.drv\\'" . guix-derivation-drv-file-name)
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-derivation.el:(add-to-list 'auto-mode-alist '("\\.drv\\'" . guix-derivation-mode))
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-build-log.el:             (cons (rx "/guix/drvs/" (= 2 alnum) "/" (= 30 alnum)
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-build-log.el:                       "-" (+ (any alnum "-+.")) ".drv" string-end)
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-autoloads.el:(add-to-list 'auto-mode-alist (cons (rx "/guix/drvs/" (= 2 alnum) "/" (= 30 alnum) "-" (+ (any alnum "-+.")) ".drv" string-end) 'guix-build-log-mode))
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-autoloads.el:(add-to-list 'auto-mode-alist '("\\.drv\\'" . guix-derivation-mode))
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-build-config.el:      (expand-file-name "images" "/tmp/guix-build-emacs-guix-0.3.3-e9e9e02.drv-0/source")))
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-build-config.el:      (expand-file-name "scheme" "/tmp/guix-build-emacs-guix-0.3.3-e9e9e02.drv-0/source")))
/home/natsu/.guix-profile/share/emacs/site-lisp/guix-build-config.el:      (expand-file-name "scheme" "/tmp/guix-build-emacs-guix-0.3.3-e9e9e02.drv-0/source")))
Binary file /home/natsu/.guix-profile/share/emacs/site-lisp/guix-build-log.elc matches
Binary file /home/natsu/.guix-profile/share/emacs/site-lisp/guix-derivation.elc matches
Binary file /home/natsu/.guix-profile/share/emacs/site-lisp/geiser-install.elc matches
/home/natsu/.guix-profile/share/emacs/site-lisp/geiser-autoloads.el:(setq geiser-scheme-dir "/gnu/store/9kfky3gnvrcpa0kmnmwalv8drvh36i3q-geiser-0.9/share/geiser")
/home/natsu/.guix-profile/share/emacs/site-lisp/geiser-install.el:(setq geiser-scheme-dir "/gnu/store/9kfky3gnvrcpa0kmnmwalv8drvh36i3q-geiser-0.9/share/geiser")
Binary file /home/natsu/.guix-profile/share/emacs/25.3/lisp/bindings.elc matches
Binary file /home/natsu/.guix-profile/share/emacs/25.3/lisp/leim/quail/ZIRANMA.elc matches
Binary file /home/natsu/.guix-profile/share/emacs/25.3/lisp/dos-w32.elc matches
Binary file /home/natsu/.guix-profile/share/emacs/25.3/lisp/international/latexenc.elc matches
Binary file /home/natsu/.guix-profile/share/emacs/25.3/lisp/international/mule-conf.elc matches```

Oleg.

alezost commented 6 years ago

Oh, you mean latex-mode also wants to be enabled in drv files, right?

If so, then I think it is neither latex, nor emacs-guix problem, it's just a usual conflict – 2 packages try to handle the same files, and some of them wins by accident :-)

In this case, auctex wins simply because it is autoloaded after emacs-guix (since emacs-guix places *.el files in site-lisp and auctex – in site-lisp/guix.d which is loaded afterwards).

I'm afraid if you are not satisfied with this "choice of fortune" (I mean if you want to associate .drv files with guix-derivation-mode), you need to handle it in your emacs config. I don't see how this can be fixed in Emacs-Guix or Auctex.

wigust commented 6 years ago

Hello Alex,

Alex Kost notifications@github.com writes:

Oh, you mean latex-mode also wants to be enabled in drv files, right?

Yes.

If so, then I think it is neither latex, nor emacs-guix problem, it's just a usual conflict – 2 packages try to handle the same files, and some of them wins by accident :-)

But those are my favorite packages. :-) Of course I could use Guix's profiles though.

In this case, auctex wins simply because it is autoloaded after emacs-guix (since emacs-guix places *.el files in site-lisp and auctex – in site-lisp/guix.d which is loaded afterwards).

True. There are auto loading files:

~/.guix-profile/share/emacs/site-lisp/PACKAGE-autoloads.el

And Auctex is always the latest loaded.

I'm afraid if you are not satisfied with this "choice of fortune" (I mean if you want to associate .drv files with guix-derivation-mode), you need to handle it in your emacs config. I don't see how this can be fixed in Emacs-Guix or Auctex.

handle it in your emacs config

Is it actually possible currently on GuixSD because of PACKAGE-autoloads?

Auctex has (add-to-list 'auto-mode-alist '("\.drv\'" . latex-mode)) in

~/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/auctex-autoloads.el

It loads before user's configuration ".emacs". I see this by appending "--load ~/.emacs" to command in attachment follows this message.

The only way is to remove ("\.drv\'" . latex-mode) probably using one of the functions from (elisp) Association Lists¹. WDYT?

¹ https://www.gnu.org/software/emacs/manual/html_node/elisp/Association-Lists.html

Oleg.

wigust commented 6 years ago
$ emacs --batch --eval '(mapc (lambda (x) (message "%S %S" (car x) (cdr x))) auto-mode-alist)'
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/geiser-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/emms-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/magit-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/wget-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/gettext-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/haskell-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/translate-shell-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/tuareg-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/tablist-0.70/tablist-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/aggressive-indent-1.8.3/aggressive-indent-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/suggest-0.4/suggest-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/spinner-1.7.3/spinner-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/writegood-mode-2.0.2/writegood-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/git-timemachine-3.0/git-timemachine-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/org-20171016/org-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/htmlize-1.51/htmlize-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/visual-fill-column-1.11/visual-fill-column-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/rjsx-mode-0.2.0/rjsx-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/paredit-24/paredit-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/ag-0.47/ag-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/biblio-0.1/biblio-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/websocket-1.8/websocket-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/seq-2.20/seq-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/sr-speedbar-20140914.2339/sr-speedbar-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/parent-mode-2.3/parent-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/stumpwm-mode-0.0.1-1.8fbe071/stumpwm-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/helm-2.8.5/helm-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/smartparens-1.10.1/smartparens-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/slime-2.20/slime-autoloads...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/alert-1.2/alert-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/emms-player-mpv-0.0.10/emms-player-mpv-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/helm-bibtex-2.0.0-1.8ed898f/helm-bibtex-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/json-reformat-0.0.6/json-reformat-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/helpful-0.1/helpful-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/pkg-info-0.6/pkg-info-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/request-0.2.0/request-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/page-break-lines-0.11/page-break-lines-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/makey-0.3/makey-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/goto-chg-1.6/goto-chg-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/nnreddit-0.0.1-1.9843f99/nnreddit-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/helm-youtube-1.1/helm-youtube-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/csv-mode-1.6/csv-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/elisp-refs-1.2/elisp-refs-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/indium-0.7.3-1.d98a9e0/indium-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/hydra-0.14.0/hydra-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/shut-up-0.3.2/shut-up-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/queue-0.2/queue-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/ace-window-0.9.0/ace-window-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/company-restclient-0.1.0/company-restclient-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/know-your-http-well-0.5.0/know-your-http-well-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/wordgen-0.1.4/wordgen-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/shift-number-0.1/shift-number-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/simple-httpd-1.4.6/simple-httpd-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/dashboard-1.2.4/dashboard-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/erc-hl-nicks-1.3.2/erc-hl-nicks-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/highlight-stages-0.0.1-1.29cbc5b/highlight-stages-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/json-mode-1.7.0/json-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/company-quickhelp-2.3.0/company-quickhelp-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/pdf-tools-0.80/pdf-tools-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/org-protocol-capture-html-0.0.1-1.0e39b7e/org-protocol-capture-html-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/writeroom-3.7/writeroom-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/org-ref-1.1.1-1.8c9b5d7/org-ref-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/skewer-mode-1.6.2/skewer-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/nix-mode-1.11.9/nix-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/with-editor-2.7.0/with-editor-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/rpm-spec-mode-0.16/rpm-spec-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/epl-0.8/epl-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/list-utils-0.4.4/list-utils-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/ggtags-0.8.12/ggtags-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/helm-notmuch-1.1/helm-notmuch-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/ido-ubiquitous-4.5/ido-ubiquitous-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/transpose-frame-0.1.0/transpose-frame-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/company-lua-0.1/company-lua-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/lua-mode-20151025.1-652e299cb/lua-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/cider-0.15.0/cider-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/git-auto-commit-mode-4.4.0/git-auto-commit-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/projectile-0.14.0/projectile-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/git-modes-1.2.6/git-modes-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/highlight-numbers-0.2.3/highlight-numbers-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/eval-in-repl-0.9.6/eval-in-repl-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/which-key-3.0.2/which-key-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/use-package-2.3/use-package-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/parsebib-2.3.1/parsebib-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/dumb-jump-0.5.0/dumb-jump-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/rfcview-0.13/rfcview-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/diminish-0.45/diminish-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/markdown-mode-2.3/markdown-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/f-0.19.0/f-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/ivy-0.9.1/ivy-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/magit-popup-2.11.0/magit-popup-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/npm-mode-0.6.0/npm-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/git-gutter-0.90/git-gutter-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/gitpatch-0.5.0/gitpatch-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/undo-tree-0.6.6/undo-tree-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/git-messenger-0.18/git-messenger-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/log4e-0.3.0/log4e-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/org-edit-latex-0.8.0/org-edit-latex-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/org-pomodoro-2.1.0/org-pomodoro-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/benchmark-init-0.0.1-1.8e4c32f/benchmark-init-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/flx-0.6.1/flx-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/bash-completion-2.0.0/bash-completion-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/edit-server-1.13/edit-server-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/tern-0.21.0/tern-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/ebuild-mode-1.37/ebuild-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/rainbow-identifiers-0.2.2/rainbow-identifiers-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/popup-0.5.3/popup-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/memoize-20130421.b55eab0/memoize-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/async-1.9.2/async-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/sx-0.4/sx-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/bui-1.1.0/bui-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/gntp-0.1/gntp-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/restclient-1.07a3888/restclient-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/flycheck-30/flycheck-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/multiple-cursors-1.4.0/multiple-cursors-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/sourcemap-0.03/sourcemap-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/edit-indirect-0.1.4/edit-indirect-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/engine-mode-2.0.0/engine-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/dash-2.13.0/dash-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/undercover-0.6.0/undercover-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/elfeed-2.2.0/elfeed-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/highlight-defined-0.1.5/highlight-defined-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/ido-vertical-mode-0.1.6/ido-vertical-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/clojure-mode-5.4.0/clojure-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/auctex-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/debbugs-0.14/debbugs-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/yasnippet-0.12.2/yasnippet-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/company-0.9.3/company-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/s-1.12.0/s-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/expand-region-0.11.0/expand-region-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/json-snatcher-1.0.0/json-snatcher-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/discover-my-major-1.0/discover-my-major-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/loop-1.3/loop-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/beginend-2.0.0/beginend-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/smex-3.0/smex-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/highlight-symbol-1.3/highlight-symbol-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/rainbow-delimiters-2.1.3/rainbow-delimiters-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/lacarte-0.1/lacarte-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/web-beautify-0.3.2/web-beautify-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/avy-0.4.0/avy-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/move-text-2.0.8/move-text-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/key-chord-0.6/key-chord-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/company-tern-0.3.0/company-tern-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/dired-hacks-0.0.1-1.eda6800/dired-hacks-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/js2-mode-20150909/js2-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/browse-at-remote-0.9.0-1.b5cff79/browse-at-remote-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/irfc-20130824.507/irfc-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/web-mode-14/web-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/rainbow-mode-0.13/rainbow-mode-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/stickyfunc-enhance-0.1/stickyfunc-enhance-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/slime-company-1.1/slime-company-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/helm-make-0.1.0-1.21c1bfa/helm-make-autoloads.el (source)...
Loading /home/natsu/.guix-profile/share/emacs/site-lisp/guix.d/pos-tip-0.4.6/pos-tip-autoloads.el (source)...
"\\.hva\\'" latex-mode
"\\.drv\\'" latex-mode
"\\(?:build\\|profile\\)\\.boot\\'" clojure-mode
"\\.cljs\\'" clojurescript-mode
"\\.cljx\\'" clojurex-mode
"\\.cljc\\'" clojurec-mode
"\\.\\(clj\\|dtm\\|edn\\)\\'" clojure-mode
"/[0-9]\\{4\\}-[01][0-9]-[0-3][0-9]-.+\\.[a-z]\\{2\\}\\.txt\\'" gentoo-newsitem-mode
"\\.\\(ebuild\\|eclass\\)\\'" ebuild-mode
"/git/ignore\\'" gitignore-mode
"/info/exclude\\'" gitignore-mode
"/\\.gitignore\\'" gitignore-mode
"/etc/gitconfig\\'" gitconfig-mode
"/\\.gitmodules\\'" gitconfig-mode
"/git/config\\'" gitconfig-mode
"/modules/.*/config\\'" gitconfig-mode
"/\\.git/config\\'" gitconfig-mode
"/\\.gitconfig\\'" gitconfig-mode
"/git/attributes\\'" gitattributes-mode
"/info/attributes\\'" gitattributes-mode
"/\\.gitattributes\\'" gitattributes-mode
"\\.lua\\'" lua-mode
"\\.spec\\(\\.in\\)?$" rpm-spec-mode
"\\.nix.in\\'" nix-mode
"\\.nix\\'" nix-mode
"\\.json$" json-mode
"\\.[Cc][Ss][Vv]\\'" csv-mode
"\\.jsx\\'" rjsx-mode
"\\.hsc\\'" haskell-mode
"\\.l[gh]s\\'" literate-haskell-mode
"\\.[gh]s\\'" haskell-mode
"\\.cabal\\'" haskell-cabal-mode
"\\.chs\\'" haskell-c2hs-mode
"\\.ghci\\'" ghci-script-mode
"\\.dump-simpl\\'" ghc-core-mode
"\\.hcr\\'" ghc-core-mode
"\\.po\\'\\|\\.po\\." po-mode
"\\.drv\\'" guix-derivation-mode
"/guix/drvs/[[:alnum:]]\\{2\\}/[[:alnum:]]\\{30\\}-[-+.[:alnum:]]+\\.drv\\'" guix-build-log-mode
"/git-rebase-todo\\'" git-rebase-mode
"\\.rkt\\'" scheme-mode
"\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" (nil epa-file)
"\\.\\(?:3fr\\|a\\(?:r[tw]\\|vs\\)\\|bmp[23]?\\|c\\(?:als?\\|myka?\\|r[2w]\\|u[rt]\\)\\|d\\(?:c[mrx]\\|ds\\|ng\\|px\\)\\|f\\(?:ax\\|its\\)\\|gif\\(?:87\\)?\\|hrz\\|ic\\(?:on\\|[bo]\\)\\|j\\(?:\\(?:pe\\|[np]\\)g\\)\\|k\\(?:25\\|dc\\)\\|m\\(?:iff\\|ng\\|rw\\|s\\(?:l\\|vg\\)\\|tv\\)\\|nef\\|o\\(?:rf\\|tb\\)\\|p\\(?:bm\\|c\\(?:ds\\|[dltx]\\)\\|db\\|ef\\|gm\\|i\\(?:ct\\|x\\)\\|jpeg\\|n\\(?:g\\(?:24\\|32\\|8\\)\\|[gm]\\)\\|pm\\|sd\\|tif\\|wp\\)\\|r\\(?:a[fs]\\|gb[ao]?\\|l[ae]\\)\\|s\\(?:c[rt]\\|fw\\|gi\\|r[2f]\\|un\\|vgz?\\)\\|t\\(?:ga\\|i\\(?:ff\\(?:64\\)?\\|le\\|m\\)\\|tf\\)\\|uyvy\\|v\\(?:da\\|i\\(?:car\\|d\\|ff\\)\\|st\\)\\|w\\(?:bmp\\|pg\\)\\|x\\(?:3f\\|bm\\|cf\\|pm\\|wd\\|[cv]\\)\\|y\\(?:cbcra?\\|uv\\)\\)\\'" image-mode
"\\.elc\\'" elisp-byte-code-mode
"\\.dz\\'" (nil jka-compr)
"\\.xz\\'" (nil jka-compr)
"\\.lzma\\'" (nil jka-compr)
"\\.lz\\'" (nil jka-compr)
"\\.g?z\\'" (nil jka-compr)
"\\.bz2\\'" (nil jka-compr)
"\\.Z\\'" (nil jka-compr)
"\\.vr[hi]?\\'" vera-mode
"\\(?:\\.\\(?:rbw?\\|ru\\|rake\\|thor\\|jbuilder\\|rabl\\|gemspec\\|podspec\\)\\|/\\(?:Gem\\|Rake\\|Cap\\|Thor\\|Puppet\\|Berks\\|Vagrant\\|Guard\\|Pod\\)file\\)\\'" ruby-mode
"\\.re?st\\'" rst-mode
"\\.pyw?\\'" python-mode
"\\.scss\\'" scss-mode
"\\.awk\\'" awk-mode
"\\.\\(u?lpc\\|pike\\|pmod\\(\\.in\\)?\\)\\'" pike-mode
"\\.idl\\'" idl-mode
"\\.java\\'" java-mode
"\\.m\\'" objc-mode
"\\.ii\\'" c++-mode
"\\.i\\'" c-mode
"\\.lex\\'" c-mode
"\\.y\\(acc\\)?\\'" c-mode
"\\.[ch]\\'" c-mode
"\\.\\(CC?\\|HH?\\)\\'" c++-mode
"\\.[ch]\\(pp\\|xx\\|\\+\\+\\)\\'" c++-mode
"\\.\\(cc\\|hh\\)\\'" c++-mode
"\\.\\(bat\\|cmd\\)\\'" bat-mode
"\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" html-mode
"\\.svgz?\\'" image-mode
"\\.svgz?\\'" xml-mode
"\\.x[bp]m\\'" image-mode
"\\.x[bp]m\\'" c-mode
"\\.p[bpgn]m\\'" image-mode
"\\.tiff?\\'" image-mode
"\\.gif\\'" image-mode
"\\.png\\'" image-mode
"\\.jpe?g\\'" image-mode
"\\.te?xt\\'" text-mode
"\\.[tT]e[xX]\\'" tex-mode
"\\.ins\\'" tex-mode
"\\.ltx\\'" latex-mode
"\\.dtx\\'" doctex-mode
"\\.org\\'" org-mode
"\\.el\\'" emacs-lisp-mode
"Project\\.ede\\'" emacs-lisp-mode
"\\.\\(scm\\|stk\\|ss\\|sch\\)\\'" scheme-mode
"\\.l\\'" lisp-mode
"\\.li?sp\\'" lisp-mode
"\\.[fF]\\'" fortran-mode
"\\.for\\'" fortran-mode
"\\.p\\'" pascal-mode
"\\.pas\\'" pascal-mode
"\\.\\(dpr\\|DPR\\)\\'" delphi-mode
"\\.ad[abs]\\'" ada-mode
"\\.ad[bs].dg\\'" ada-mode
"\\.\\([pP]\\([Llm]\\|erl\\|od\\)\\|al\\)\\'" perl-mode
"Imakefile\\'" makefile-imake-mode
"Makeppfile\\(?:\\.mk\\)?\\'" makefile-makepp-mode
"\\.makepp\\'" makefile-makepp-mode
"\\.mk\\'" makefile-gmake-mode
"\\.make\\'" makefile-gmake-mode
"[Mm]akefile\\'" makefile-gmake-mode
"\\.am\\'" makefile-automake-mode
"\\.texinfo\\'" texinfo-mode
"\\.te?xi\\'" texinfo-mode
"\\.[sS]\\'" asm-mode
"\\.asm\\'" asm-mode
"\\.css\\'" css-mode
"\\.mixal\\'" mixal-mode
"\\.gcov\\'" compilation-mode
"/\\.[a-z0-9-]*gdbinit" gdb-script-mode
"-gdb\\.gdb" gdb-script-mode
"[cC]hange\\.?[lL]og?\\'" change-log-mode
"[cC]hange[lL]og[-.][0-9]+\\'" change-log-mode
"\\$CHANGE_LOG\\$\\.TXT" change-log-mode
"\\.scm\\.[0-9]*\\'" scheme-mode
"\\.[ckz]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" sh-mode
"\\.bash\\'" sh-mode
"\\(/\\|\\`\\)\\.\\(bash_\\(profile\\|history\\|log\\(in\\|out\\)\\)\\|z?log\\(in\\|out\\)\\)\\'" sh-mode
"\\(/\\|\\`\\)\\.\\(shrc\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" sh-mode
"\\(/\\|\\`\\)\\.\\([kz]shenv\\|xinitrc\\|startxrc\\|xsession\\)\\'" sh-mode
"\\.m?spec\\'" sh-mode
"\\.m[mes]\\'" nroff-mode
"\\.man\\'" nroff-mode
"\\.sty\\'" latex-mode
"\\.cl[so]\\'" latex-mode
"\\.bbl\\'" latex-mode
"\\.bib\\'" bibtex-mode
"\\.bst\\'" bibtex-style-mode
"\\.sql\\'" sql-mode
"\\.m[4c]\\'" m4-mode
"\\.mf\\'" metafont-mode
"\\.mp\\'" metapost-mode
"\\.vhdl?\\'" vhdl-mode
"\\.article\\'" text-mode
"\\.letter\\'" text-mode
"\\.i?tcl\\'" tcl-mode
"\\.exp\\'" tcl-mode
"\\.itk\\'" tcl-mode
"\\.icn\\'" icon-mode
"\\.sim\\'" simula-mode
"\\.mss\\'" scribe-mode
"\\.f9[05]\\'" f90-mode
"\\.f0[38]\\'" f90-mode
"\\.indent\\.pro\\'" fundamental-mode
"\\.\\(pro\\|PRO\\)\\'" idlwave-mode
"\\.srt\\'" srecode-template-mode
"\\.prolog\\'" prolog-mode
"\\.tar\\'" tar-mode
"\\.\\(arc\\|zip\\|lzh\\|lha\\|zoo\\|[jew]ar\\|xpi\\|rar\\|7z\\|ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" archive-mode
"\\.oxt\\'" archive-mode
"\\.\\(deb\\|[oi]pk\\)\\'" archive-mode
"\\`/tmp/Re" text-mode
"/Message[0-9]*\\'" text-mode
"\\`/tmp/fol/" text-mode
"\\.oak\\'" scheme-mode
"\\.sgml?\\'" sgml-mode
"\\.x[ms]l\\'" xml-mode
"\\.dbk\\'" xml-mode
"\\.dtd\\'" sgml-mode
"\\.ds\\(ss\\)?l\\'" dsssl-mode
"\\.jsm?\\'" javascript-mode
"\\.json\\'" javascript-mode
"\\.[ds]?vh?\\'" verilog-mode
"\\.by\\'" bovine-grammar-mode
"\\.wy\\'" wisent-grammar-mode
"[:/\\]\\..*\\(emacs\\|gnus\\|viper\\)\\'" emacs-lisp-mode
"\\`\\..*emacs\\'" emacs-lisp-mode
"[:/]_emacs\\'" emacs-lisp-mode
"/crontab\\.X*[0-9]+\\'" shell-script-mode
"\\.ml\\'" lisp-mode
"\\.ld[si]?\\'" ld-script-mode
"ld\\.?script\\'" ld-script-mode
"\\.xs\\'" c-mode
"\\.x[abdsru]?[cnw]?\\'" ld-script-mode
"\\.zone\\'" dns-mode
"\\.soa\\'" dns-mode
"\\.asd\\'" lisp-mode
"\\.\\(asn\\|mib\\|smi\\)\\'" snmp-mode
"\\.\\(as\\|mi\\|sm\\)2\\'" snmpv2-mode
"\\.\\(diffs?\\|patch\\|rej\\)\\'" diff-mode
"\\.\\(dif\\|pat\\)\\'" diff-mode
"\\.[eE]?[pP][sS]\\'" ps-mode
"\\.\\(?:PDF\\|DVI\\|OD[FGPST]\\|DOCX?\\|XLSX?\\|PPTX?\\|pdf\\|djvu\\|dvi\\|od[fgpst]\\|docx?\\|xlsx?\\|pptx?\\)\\'" doc-view-mode-maybe
"configure\\.\\(ac\\|in\\)\\'" autoconf-mode
"\\.s\\(v\\|iv\\|ieve\\)\\'" sieve-mode
"BROWSE\\'" ebrowse-tree-mode
"\\.ebrowse\\'" ebrowse-tree-mode
"#\\*mail\\*" mail-mode
"\\.g\\'" antlr-mode
"\\.mod\\'" m2-mode
"\\.ses\\'" ses-mode
"\\.docbook\\'" sgml-mode
"\\.com\\'" dcl-mode
"/config\\.\\(?:bat\\|log\\)\\'" fundamental-mode
"\\.\\(?:[iI][nN][iI]\\|[lL][sS][tT]\\|[rR][eE][gG]\\|[sS][yY][sS]\\)\\'" conf-mode
"\\.\\(?:desktop\\|la\\)\\'" conf-unix-mode
"\\.ppd\\'" conf-ppd-mode
"java.+\\.conf\\'" conf-javaprop-mode
"\\.properties\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" conf-javaprop-mode
"\\`/etc/\\(?:DIR_COLORS\\|ethers\\|.?fstab\\|.*hosts\\|lesskey\\|login\\.?de\\(?:fs\\|vperm\\)\\|magic\\|mtab\\|pam\\.d/.*\\|permissions\\(?:\\.d/.+\\)?\\|protocols\\|rpc\\|services\\)\\'" conf-space-mode
"\\`/etc/\\(?:acpid?/.+\\|aliases\\(?:\\.d/.+\\)?\\|default/.+\\|group-?\\|hosts\\..+\\|inittab\\|ksysguarddrc\\|opera6rc\\|passwd-?\\|shadow-?\\|sysconfig/.+\\)\\'" conf-mode
"[cC]hange[lL]og[-.][-0-9a-z]+\\'" change-log-mode
"/\\.?\\(?:gitconfig\\|gnokiirc\\|hgrc\\|kde.*rc\\|mime\\.types\\|wgetrc\\)\\'" conf-mode
"/\\.\\(?:enigma\\|gltron\\|gtk\\|hxplayer\\|net\\|neverball\\|qt/.+\\|realplayer\\|scummvm\\|sversion\\|sylpheed/.+\\|xmp\\)rc\\'" conf-mode
"/\\.\\(?:gdbtkinit\\|grip\\|orbital/.+txt\\|rhosts\\|tuxracer/options\\)\\'" conf-mode
"/\\.?X\\(?:default\\|resource\\|re\\)s\\>" conf-xdefaults-mode
"/X11.+app-defaults/\\|\\.ad\\'" conf-xdefaults-mode
"/X11.+locale/.+/Compose\\'" conf-colon-mode
"/X11.+locale/compose\\.dir\\'" conf-javaprop-mode
"\\.~?[0-9]+\\.[0-9][-.0-9]*~?\\'" (nil t)
"\\.\\(?:orig\\|in\\|[bB][aA][kK]\\)\\'" (nil t)
"[/.]c\\(?:on\\)?f\\(?:i?g\\)?\\(?:\\.[a-zA-Z0-9._-]+\\)?\\'" conf-mode-maybe
"\\.[1-9]\\'" nroff-mode
"\\.tgz\\'" tar-mode
"\\.tbz2?\\'" tar-mode
"\\.txz\\'" tar-mode
"\\.markdown\\'" markdown-mode
"\\.md\\'" markdown-mode
alezost commented 6 years ago

Oleg Pykhalov (2017-11-11 11:05 +0000) wrote:

Alex Kost notifications@github.com writes:

I'm afraid if you are not satisfied with this "choice of fortune" (I mean if you want to associate .drv files with guix-derivation-mode), you need to handle it in your emacs config. I don't see how this can be fixed in Emacs-Guix or Auctex.

handle it in your emacs config

Is it actually possible currently on GuixSD because of PACKAGE-autoloads?

Sorry, this question is not clear for me. Are you asking whether adjusting emacs config is possible to customize auto-mode-alist? If so, then sure it is possible; it doesn't matter if you are on GuixSD or on any other system.

Auctex has (add-to-list 'auto-mode-alist '("\.drv\'" . latex-mode)) in

~/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/ auctex-autoloads.el

It loads before user's configuration ".emacs".

Sure, all autoloads are loaded before your .emacs.

I see this by appending "--load ~/.emacs" to command in attachment follows this message.

Sorry, I don't understand why you sent this attachment :-)

The only way is to remove ("\.drv\'" . latex-mode) probably using one of the functions from (elisp) Association Lists¹. WDYT?

Yeah, if I wanted to remove that entry, I would do it like this:

(setq auto-mode-alist (rassq-delete-all 'latex-mode auto-mode-alist))

Or you can simply put (add-to-list 'auto-mode-alist ...) string to your .emacs - it will override the autoloaded entries as it will be on the top of auto-mode-alist.

-- Alex

alezost commented 6 years ago
(setq auto-mode-alist (rassq-delete-all 'latex-mode auto-mode-alist))

Oh wait, this will remove all file-name regexps handled by latex-mode. This is probably not what you want :smile:

Then adding a new element to auto-mode-alist would probably be the easiest workaround.

wigust commented 6 years ago

Hello Alex,

Alex Kost notifications@github.com writes:

[...]

Is it actually possible currently on GuixSD because of PACKAGE-autoloads?

Sorry, this question is not clear for me.

Are you asking whether adjusting emacs config is possible to customize auto-mode-alist? If so, then sure it is possible; it doesn't matter if you are on GuixSD or on any other system.

Hm, OK. I just little bit confused about "autoloads". If they present in a package, I could't remove them without patching the package.

Auctex has (add-to-list 'auto-mode-alist '("\.drv\'" . latex-mode)) in

~/.guix-profile/share/emacs/site-lisp/guix.d/auctex-11.91.0/ auctex-autoloads.el

It loads before user's configuration ".emacs".

Sure, all autoloads are loaded before your .emacs.

I see this by appending "--load ~/.emacs" to command in attachment follows this message.

Sorry, I don't understand why you sent this attachment :-)

It shows ".emacs" loads after "autoloads". Apologies for noise :-)

Or you can simply put (add-to-list 'auto-mode-alist ...) string to your .emacs - it will override the autoloaded entries as it will be on the top of auto-mode-alist.

I didn't think that add-to-list can move element to the top of the "alist". Thank you for the tip!

Oleg.

alezost commented 6 years ago

Oleg Pykhalov (2017-11-15 23:24 +0000) wrote:

Alex Kost notifications@github.com writes:

[...]

Is it actually possible currently on GuixSD because of PACKAGE-autoloads?

Sorry, this question is not clear for me.

Are you asking whether adjusting emacs config is possible to customize auto-mode-alist? If so, then sure it is possible; it doesn't matter if you are on GuixSD or on any other system.

Hm, OK. I just little bit confused about "autoloads". If they present in a package, I could't remove them without patching the package.

Yeah, you can't remove anything from the "autoloads.el" files, but there is probably some miss-understanding here: I just wanted to tell that you can configure your emacs no matter what is loaded before or after. So in this case you can use add-to-list to get the behavior you want.

Can this issue be closed now, or is there anything I missed in your question?

-- Alex

wigust commented 6 years ago

Yeah, you can't remove anything from the "autoloads.el" files, but there is probably some miss-understanding here: I just wanted to tell that you can configure your emacs no matter what is loaded before or after. So in this case you can use add-to-list to get the behavior you want.

OK, I see the point. Thank you!

Can this issue be closed now, or is there anything I missed in your question?

Nope, it's clear now. I'll close the issue.

Oleg.