2023-05-04 12:38 [email protected]:
Hi Guix,
Hello!
I'm wondering whether it's possible to install an emacs package
and
enable it without restarting emacs.
What I've tried:
- $ guix install emacs-nix-mode
- Locate
/gnu/store/...emacs-nix-mode/share/emacs/site-lisp/nix-mode
- Run command dired-do-load from the directory above
Unfortunately it doesn't quite work. It did load the package,
but it
prints the following error when trying to enable the mode.
execute-extended-command: Cannot open load file: No such file or
directory, nix-mode
I'm not very familiar with dired-do-load, but I guess, it loads
the elisp-files sequentially or so. So, one of those files tries
to load/require "nix-mode" but that file/feature has not been
loaded yet.
Instead, you can try one of these approaches: After installing
emacs-nix-mode, type either:
M-: (load
"~/.guix-profile/share/emacs/site-lisp/nix-mode.../nix-mode.el")
RET
Or:
M-: (add-to-list 'load-path
"~/.guix-profile/share/emacs/site-lisp/nix-mode.../nix-mode.el")
RET
M-: (require 'nix-mode) RET
Or, if you have emacs-guix installed, you could try:
M-x guix-emacs-autoload-packages RET
Good luck!