Giter Club home page Giter Club logo

emacs.d's Introduction

我的乐色Emacs配置

关于这个配置文件

不要觉得这是一个很好的Emacs配置,这只是我自己学习使用Emacs的时候依据自己的需求东拼西凑出来的超级缝合怪。所以说不要把这些配置当做教科书式的配置。不过我认为我的这些配置都还是挺通俗易懂的,毕竟很多功能都有相应的注释 因为这些东西都是抄来的 所以说我的这份配置,或许能够帮你

关于安装

这我没有什么可说的,你只需要简简单单地下载这个仓库并将其命名为你的emacs配置目录(建议是 ~/.emacs.d/

一些说明

安装的插件

我的插件设置均存放在 lisp/init-package.el 文件里,均使用了 use-package 宏作为插件的管理,应当是相当易读的。这里列出一些:

  1. evil
  2. which-key
  3. smooth-scrolling
  4. company
  5. yasnippet
  6. yasnippet-snippets
  7. flycheck
  8. lsp-mode
  9. magit

上面的插件并不全面,但已经覆盖了大部分的功能性插件

文件的作用

文件名作用
init.el所有配置的入口
lisp/custom.el通过customize接口生成的配置
lisp/init-packages.el关于插件的安装、设置
lisp/init-better-defaults.el更好的默认设置
lisp/init-ui.el关于UI的设置
lisp/init-keybindings.el关于键盘绑定设置
lisp/init-auto-insert.el新文件自动插入文件头的配置(模板在 auto-insert 文件夹下)
lisp/init-quickly-input-c.el设置C语言部分快捷输入快捷键
lisp/init-org.el关于org-mode的设置
lisp/init-auto-save.el自动保存插件,使用custom配置
lisp/init-open-files.el快速打开文件插件,使用custom配置
lisp/init-loop-alpha.el循环设置窗口透明度,使用custom配置

注:三个”插件”的custom组名只需要将文件名的 init 替换为 local 并去除后缀名即可

一些我配置的提示

  1. 我在编辑器的第80列配置了一条线,用于提示“一行不要超过80列”,并可以在开启 auto-fill-mode 后作为一个提示。
  2. 我配置了属于我自己的新文件自动插入文件头功能,也定义了自己的 yasnippet 模板文件。
  3. 本配置大多倾向于C语言。
  4. 制作了个“插件”: F5(可自定义by customize-option local-open-files-key1)在右侧新建一个window或者用 F6(自定义by customize-option local-open-files-key2) 在当前window 切换到buffer *FileList* 在其中显示文件列表(自定义by customize-option local-open-files-list)并询问打开哪个文件(文件前有编号),它在 init-open-files.el 文件里
  5. 我提供的custom设置放置在 lisp/init-custom.el 文件内。

emacs.d's People

Contributors

youlanjie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.