默認情況下,我如何讓Emacs在終端(或控制檯)模式下運行,就像我使用的是-nw
?一旦完成,如果需要,我如何強制它在GUI模式下運行(一次)?默認情況下讓emacs在控制檯模式下運行(-nw)
37
A
回答
52
在我的Debian測試中,alias emacs='emacs -nw'
後跟emacs
在終端中打開Emacs。並且,在同一個會話中,emacs23-x
使用GUI打開Emacs。
0
alias emacs='emacs -nw'
或者
unset DISPLAY
+1
清除DISPLAY的作品,但它假定你不想運行任何其他的X程序。 – Eponymous 2016-01-17 18:18:24
7
如果你決定使用emacs在終端模式總是,安裝emacs的硝(emacs的,沒有X支持)。
emacs的,所以你installationis仍然$跑後無需重新創建別名!:)
其存在於Debian中的回購擠我一定要在Ubuntu也。
3
This answer表明我發現的方法對我最有效(對別名有問題)。從本質上講,在你的shell RC文件中創建可執行腳本
#!/bin/sh
emacs -nw "[email protected]"
和點$EDITOR
它。
0
我遇到了這個問題,並不想設置別名(因爲我也希望「emacs -nw」是我的默認外殼編輯器,但它不會工作),所以我開始思考並看到這一行在configure
If you are sure you want Emacs compiled without X window support, pass
--without-x to configure.
所以,如果你想下載並從源代碼編譯,你可以做
curl http://gnu.mirrors.hoobly.com/emacs/emacs-25.3.tar.xz
tar -xvzf emacs-25.3.tar.xz && cd emacs-25.3
./configure --without-x
make && sudo make install
相關問題
- 1. 默認情況下,UITableView編輯模式
- 2. 默認情況下讓emacs突出顯示postgresql語法
- 3. 默認情況下,在SharePoint中進行版本控制
- 4. 無法在沒有控制的情況下運行交互式控制檯TTY
- 5. 在沒有控制檯的情況下運行minGW控制檯程序
- 6. 默認情況下MINGW64 curl設置默認模式
- 7. 如何在默認情況下運行cuda中的pytorch運算
- 8. 默認情況下,法國
- 9. 安卓:默認情況下
- 10. 如何在默認情況下禁用IntelliJ IDEA版本控制?
- 11. 默認情況下不會執行C++
- 12. 默認情況下在Chrome中摺疊控制檯信息消息
- 13. 產量和默認情況||不輸出默認情況下
- 14. 默認情況下在PHPUnit中運行單個測試套件
- 15. 默認情況下如何在python 3下運行.py可執行文件?
- 16. 在默認情況下的UITableViewCell
- 17. 複選框在默認情況下knockout.js
- 18. 默認情況下,在項目
- 19. 默認情況下,在asp.net MVC2
- 20. 在默認情況下優化CMake
- 21. 默認情況下,在網頁
- 22. 默認情況下在參數
- 23. 是什麼導致IE8在默認情況下在IE7模式下呈現
- 24. 如何在控制檯模式下進入Emacs菜單?
- 25. 在控制檯模式下運行Windows服務?
- 26. 找出如果在WPF或控制檯模式下運行(c#)
- 27. 默認情況下爲項目依賴性運行gradle測試
- 28. Scala模式匹配總是默認情況下
- 29. 默認情況下以全屏模式打開HTML5視頻?
- 30. Google VR Player SDK(GVRSDK)默認情況下以carboard模式啓動?
或'的X版本\ emacs'。這將調用原始的emacs而不是別名。我有三個別名:'enw ='\ emacs -nw -name -bg black -fg white -bd ForestGreen'','emacsx ='\ emacs -name Editor_Emacs_ $ USER @ $ HOST -geometry 80x50 -bg black -fg white -bd ForestGreen''和'emacs ='enw''使* nw * de默認。 – 2011-03-01 14:17:15