[Fish] Emacs launched in terminal mode when launched from terminal
This commit is contained in:
		
							parent
							
								
									f3d5b229bd
								
							
						
					
					
						commit
						95119f7bad
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user