How to set emacs as external editor ( in a Guix system )?

Hello fellow Nyxt hackers ! May i ask you how to instruct nyxt to use emacs as external editor in a Guix system ?

I’ve unsuccesfully tried to do so like this ( in both my ~/.config/nyxt/init.el and …/auto-config.lisp files) :

(define-configuration  browser
  ((external-editor-program "/home/fenix/.guix-home/profile/bin/emacsclient")))

FYI, i’m getting Nyxt message saying :

" WARNING : the value is not of type list when binding SB-IMPL::X  "

What am i missing ?

thanks, thanks thanks

Try putting this string into a list, like

(define-configuration  browser
  ((external-editor-program '("/home/fenix/.guix-home/profile/bin/emacsclient"))))

That should probably fix it.

The problem is likely due to uiop:launch-program (the function we use for external editor invokations) accepting only a list of strings. I’ve just pushed a fix on master, now a mere string should be fine too.


By the way, why init.el instead of init.lisp? Nyxt is written in Common Lisp, not Emacs Lisp. :upside_down_face:

@fenix Note that specifying the program as a list of strings is handy since you can also declare arguments. For instance, here’s how I set external-editor-program:

(define-configuration browser
  ((external-editor-program (list "emacsclient" "-c"))))

Nice to know @aadcg !

Oh, yes, … i knew. Super Nyxt browser is made not of Emacs Lisp but Common Lisp, @aartaka . Thanks for the reminder.

Happy hacking

Common Lisp > Emacs Lisp :stuck_out_tongue: