[Fish] Emacs launched in terminal mode when launched from terminal

This commit is contained in:
Lucien Cartier-Tilet 2021-02-04 09:22:54 +01:00
parent f3d5b229bd
commit 95119f7bad
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -346,17 +346,16 @@ Here is the corresponding fish configuration:
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: Abbreviations-Development-Text_editors-5a23df47 :CUSTOM_ID: Abbreviations-Development-Text_editors-5a23df47
:END: :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, Ill usually want Emacs to be displayed in CLI mode and not in GUI mode, otherwise I would invoke it with my WMs 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 #+NAME: abbr-text-ed
| abbreviation | command | | abbreviation | command |
|--------------+--------------------| |--------------+--------------------|
| e | emacsclient -c | | e | emacsclient -c -nw |
| enw | emacsclient -c -nw | | vi | emacsclient -c -nw |
| vi | emacsclient -c | | vim | emacsclient -c -nw |
| vim | emacsclient -c | | nano | emacsclient -c -nw |
| nano | emacsclient -c | | ed | emacsclient -c -nw |
| ed | emacsclient -c |
Here is the corresponding fish configuration: Here is the corresponding fish configuration:
#+BEGIN_SRC fish :noweb yes #+BEGIN_SRC fish :noweb yes