From 95119f7bad90bb987dbee8a1167035d9feb6d58f Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Thu, 4 Feb 2021 09:22:54 +0100 Subject: [PATCH] [Fish] Emacs launched in terminal mode when launched from terminal --- org/config/fish.org | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/org/config/fish.org b/org/config/fish.org index e50c588..0f83566 100644 --- a/org/config/fish.org +++ b/org/config/fish.org @@ -346,17 +346,16 @@ Here is the corresponding fish configuration: :PROPERTIES: :CUSTOM_ID: Abbreviations-Development-Text_editors-5a23df47 :END: -I greatly prefer to use Emacsclient as my main text editor; Emacs has basically all I need. So, it's only normal I have an abbreviation to launch a new instance of it. However, in a graphical environment, this will launch a new graphical window of Emacs. To launch a terminal instance, I'll use ~enw~ (~nw~ stands for the option “nowindow” ~-nw~ of Emacs). I also wish to completely stop using other text editors, such as ~vi~, ~vim~, ~nano~ and ~ed~, so let's all add their command as an abbreviation for Emacs. +I greatly prefer to use Emacsclient as my main text editor; Emacs has basically all I need. So, it's only normal I have an abbreviation to launch a new instance of it. If launched in the terminal, I’ll usually want Emacs to be displayed in CLI mode and not in GUI mode, otherwise I would invoke it with my WM’s shortcut. I also wish to completely stop using other text editors, such as ~vi~, ~vim~, ~nano~ and ~ed~, so let's all add their command as an abbreviation for Emacs. #+NAME: abbr-text-ed | abbreviation | command | |--------------+--------------------| -| e | emacsclient -c | -| enw | emacsclient -c -nw | -| vi | emacsclient -c | -| vim | emacsclient -c | -| nano | emacsclient -c | -| ed | emacsclient -c | +| e | emacsclient -c -nw | +| vi | emacsclient -c -nw | +| vim | emacsclient -c -nw | +| nano | emacsclient -c -nw | +| ed | emacsclient -c -nw | Here is the corresponding fish configuration: #+BEGIN_SRC fish :noweb yes