emacs安装与配置(Centaur Emacs)

阅读: 评论:0

emacs安装与配置(Centaur Emacs)

emacs安装与配置(Centaur Emacs)

第一步安装emacs

 yay -S emacs

配置Centaur Emacs

/.emacs.d

mv ~/.emacs.d ~/.emacs.d.bak
git clone --depth 1 /.emacs.d.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无法链接

hosts文件添加 以下内容并保存即可恢复
199.232.68.133 raw.githubusercontent

配置Emacs Application Framework (EAF)

.zh-CN.md

  1. 安装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
  1. 下载这个仓库.一般放在.emacs.d/site-lisp/
git clone .git --depth=1
  1. 把EAF加入Emacs的 load-path,然后在 init.el 中写入:
(require 'eaf)

如果你使用use-package,下面有一个简单的配置文件供你参考:


(use-package eaf:load-path "~/.emacs.d/site-lisp/emacs-application-framework" ; 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))

本文发布于:2024-02-02 20:11:34,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170687589246162.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:emacs   Centaur   Emacs
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23