[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Newbie question: How to disable pager in "guix search"?
From: |
Felix Lechner |
Subject: |
Re: Newbie question: How to disable pager in "guix search"? |
Date: |
Sun, 5 Mar 2023 11:58:55 -0800 |
Hi Rodrigo,
On Sun, Mar 5, 2023 at 11:53 AM Rodrigo Morales
<moralesrodrigo1100@gmail.com> wrote:
>
> | (setenv "EDITOR" "emacsclient")
I keep the small Guile script below in ~/.config/editor/always-emacs
and set EDITOR to that (in init.el).
Kind regards
Felix Lechner
* * *
#!/usr/bin/env guile
!#
(let* ((arguments (cdr (command-line)))
(inside-emacs (getenv "INSIDE_EMACS"))
(emacs-command (if (string-contains (or inside-emacs "") "comint")
(append '("emacsclient") arguments)
(append '("emacsclient" "--create-frame") arguments))))
(apply execlp emacs-command))