emacs安裝與配置 Centaur Emacs

2021-10-08 18:20:07 字數 1543 閱讀 1889

yay -s emacs

mv ~/.emacs.d ~/.emacs.d.bak

git clone --depth 1 .git ~/.emacs.d

emacs配置檔案有兩個位置:~/.emacs 和 ~/.emacs.d/init.el,我們使用後者

home因為emacs的所有檔案都整齊地包含在單個目錄中,所以它使目錄整潔。出於同樣的原因,所有現代emacs軟體包都將其快取,歷史記錄等寫入~/.emacs.d/。

它使版本控制更加容易,尤其是如果您將init.el拆分為中的不同檔案時,尤其如此~/.emacs.d。您可以init.el像提交其他檔案一樣進行提交,並且git clone /my/emacs/config.git ~/.emacs.d在新系統上,您可以進行所有emacs配置,而無需將檔案鏈結到$home。

rm ~/.emacs  

ln -s ~/.emacs.d/init.el ~/.emacs

重新開啟emacs,會自動載入外掛程式

github的raw.githubusercontent.com無法鏈結

hosts檔案新增 以下內容並儲存即可恢復

199.232.68.133 raw.githubusercontent.com

安裝eaf依賴,對於每個依賴的解釋可以在依賴列表找到。

yay -s python-pyqt5 python-pyqt5-sip python-pyqtwebengine python-qrcode python-feedparser python-dbus python-pyinotify python-markdown nodejs aria2 libreoffice python-pymupdf python-grip filebrowser-bin

把eaf加入emacs的 load-path,然後在 init.el 中寫入:

(require 'eaf)
如果你使用use-package,下面有乙個簡單的配置檔案供你參考:

(use-package eaf

; set to "/usr/share/emacs/site-lisp/eaf"

if installed from aur

:custom

(eaf-find-alternate-file-in-dired t)

:config

(eaf-bind-key scroll_up "c-n" eaf-pdf-viewer-keybinding)

(eaf-bind-key scroll_down "c-p" eaf-pdf-viewer-keybinding)

(eaf-bind-key take_photo "p" eaf-camera-keybinding))

github ssh 配置 Emacs 安裝與配置

在 中管理文獻,即在最終的 中管理文獻。如何總結和整理學術文獻?www.zhihu.com 於是我也開始關注org mode 這一神器。我是個程式設計小白,這也阻擋不了我愛折騰的心。倒騰了一周,總算把emacs安裝配置好了,乙個得瑟,回知乎獻個醜,也希望和我一樣的程式設計小白能少走一點彎路。引用or...

Emacs安裝 配置

cedet是一組為支援emacs上的程式設計開發而實現的工具集。emacs才是世界上最強的ide cedet的安裝 cvs d pserver anonymous cedet.cvs.sourceforge.net cvsroot cedet login cvs z3 d pserver anony...

Emacs 安裝與體驗

進入c program files emacs bin目錄下,執行addpm.exe。下面我們要動一些手腳,因為將配置檔案放在c盤是不理想的,比如重灌系統等,容易丟失配置資訊。我們開啟剛剛生成的.emacs檔案,按如下修改 1.custom set variables 2.custom set va...