為啥要用Emacs
沒有為啥吧雹,直接說用了Emacs的感受吧糯而。最開始剛上手確實搞不懂該怎么配置峭状,索性直接要了我老大的配置過來查坪,當然接觸Emacs也是受他影響。
使用感受宁炫,Emacs讓我比較喜歡的點就是基本一把鍵盤就搞定了所有的功能,當然在這還是要感謝媳婦兒當初破費送了一把500的機械鍵盤給我氮凝。之前source insight羔巢、vscode、keil罩阵、iar都用過竿秆,source insight本身是不支持UTF8(當然可以自己找插件,太懶稿壁,所以沒弄)幽钢。vscode怎么說呢,界面什么的傅是,都用著還行匪燕,讓我不喜歡的地方是搜索的時候總是得拿這鼠標一個一個點蕾羊,當然可能有快捷鍵,只是我沒深入研究帽驯。keil和iar不用說了龟再,就基本edit功能,但是比較爽的地方是能夠按照語法提示補全尼变,這點我認為要優(yōu)于Emacs利凑。
以上純屬個人觀點及感受,不喜勿噴嫌术。
寫此文的目的呢哀澈,主要是記錄Emacs的學習過程,也share給有需要的人度气,算是提供一些幫助吧割按。
安裝
- 1、Emacs官網(wǎng)下載安裝包蚯嫌。
- 2哲虾、選擇一個路徑,解壓择示,例如D:\soft\束凑。
- 3、右鍵 此電腦->屬性->高級系統(tǒng)設(shè)置->高級->環(huán)境變量->系統(tǒng)變量栅盲,找到path汪诉,將路徑D:\soft\emacs\bin添加到path中。
4.win+r谈秫,在cmd命令中輸入emacs(consol+window)或emacs -nw(consol)或runemacs(window)既可以啟動Emacs扒寄。
Emacs主界面
配置
- 1、打開C:\Users\user_name\AppData\Roaming文件拟烫,如果沒有.emacs文件以及.emacs.d文件夾该编,則創(chuàng)建此文件以及文件夾。
- 2硕淑、打開.emacs文件课竣,我的.emacs文件內(nèi)容如下:
;;;--------------------------------------------------------
;; load emacs configure
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(require 'package)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'load-path "~/.emacs.d/site-lisp/")
(load "init.el")
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages (quote (auto-yasnippet auctex auto-complete))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(put 'downcase-region 'disabled nil)
(put 'upcase-region 'disabled nil)
其中添加“"https://stable.melpa.org/packages/”地址是為了能夠獲取mepla平臺的插件。
"~/.emacs.d/site-lisp/"是init.el的路徑置媳。
- 3于樟、打開.emacs.d文件夾,創(chuàng)建文件夾site-lisp拇囊,并在文件夾中創(chuàng)建文件init.el
至此基本安裝迂曲、配置已經(jīng)完成。
下一步就是安裝配置插件寥袭,讓Emacs變得更加完美路捧。