alezost / guix.el

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

C-c C-z (switch-to-geiser) does not work #19

Closed Ambrevar closed 6 years ago

Ambrevar commented 6 years ago

From a Scheme buffer in Guix mode:

Is there a way to go back to the calling buffer?

alezost commented 6 years ago

From a Scheme buffer in Guix mode:

Do you mean guix-devel-mode? If so, note that this minor mode is not related to Guix REPL at all! It just provides several commands additionally to the Geiser functionality (look at the manual section for details). So in a scheme buffer you just use a general Geiser workflow with some additional stuff (font-lock highlighting and commands) from guix-devel-mode.

  • M-x guix-switch-to-repl ; Point is not in the Guix REPL.

Do you mean the point is in the Guix REPL (or is not)? Note that the Guix REPL is not used by any scheme buffer in any way! It is used to display packages, generations, etc. and to do some operations that are performed from the *Guix ... buffers (to install packages, to switch/delete generations, etc.).

Is there a way to go back to the calling buffer?

Yes, just use M-x switch-to-geiser from the calling buffer, not M-x guix-switch-to-repl.

alezost commented 6 years ago

By the way, if you still wish to use Guix REPL as you current Geiser REPL, you can connect to it with M-x geiser-connect-local (you can find the socket file name to connect to in the guix-repl-current-socket variable). I use this REPL when I work with the "guile side" of Emacs-Guix. For example, you can run M-x switch-to-geiser-module (emacs-guix) in the connected REPL and evaluate something there, like: (guix-command "--help").

alezost commented 6 years ago

Closing this. @Ambrevar let me know if something is still not clear

Ambrevar commented 6 years ago

Sorry, forgot to go back to this: yes, this makes perfect sense, I got confused by my Scheme setup!