1 Star 0 Fork 0

daotoyi / emacs.d

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

EmacsCofig emacs.d/init.el

1 GiteeClone

URL git@gitee.com:daotoyi/emacs.d.git

2 Config

Windows or Linux

cd emacs.d/emacs.d
mkdir ~/.emacs.d/
cp -rf * ~/.ecmsc.d/

NOTE

1 the load-path on Linux

can't load .el file when statup,

Please have a look at the accompanying default.el customisation example. It can be used as a configuration file (after moving it e. g. to/usr/share/emacs/site-lisp or c:\EMACS_INSTALLDIR\site-lisp, hint: The directory site-lisp/ in the Emacs installation tree is in its default load-path). Yet default.el is loaded AFTER your personal Emacs configuration file (if there is any) ~/.emacs (or~/.emacs.d/init.el)! If you intend to change the following settings with Emacs customisation system or changing them directly in your personal configuration file, you must either set the variable inhibit-default-init to (setq inhibit-default-init t) in your personal configuration file or remove default.el otherwise your settings might be overwritten!

[refer]Debugger entered--Lisp error: (file-error "Cannot open load file" "/home/andre/a-m")

Resolve
  1. move init-xxx.el to other path

moving init-xxx.el to '/usr/share/emacs/site-lisp’ or c:\EMACS_INSTALLDIR\site-lisp’

  1. added (setq inhibit-default-init t) to the init file Try it but not work.

2 Platform diff

Configuration in different platfrom is distiguished, such as:

(when (eq system-type 'windows-nt)
   (add-to-list 'exec-path "d:/Program Files/MPlayer for Windows/"))
(when (eq system-type 'gnu/linux)
   (add-to-list 'exec-path "/mnt/d/Program Files/MPlayer for Windows/"))

Config(init.el)

(add-to-list 'load-path (expand-file-name (concat EamcsConfDir ".emacs.d/lisp/")))

;;; Package Management
(require 'init-elpa)
...
(require 'custom)

Config(init-xxx.el)


...
;;; MUST BE, eg.(provide 'init-elpa)
(provide 'init-xxx)

3 Install

Running when start!

空文件

简介

private emacs configuration. 展开 收起
Emacs Lisp 等 3 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/daotoyi/emacs.d.git
git@gitee.com:daotoyi/emacs.d.git
daotoyi
emacs.d
emacs.d
main

搜索帮助