Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/airmanh/.emacs.d

My Emacs configuration files.
https://github.com/airmanh/.emacs.d

emacs emacs-configuration

Last synced: 26 days ago
JSON representation

My Emacs configuration files.

Awesome Lists containing this project

README

        

* air-emacs

My Emacs configuration files.

** Features

- auto install and update required package
- file manager (=sr-speedbar=)
- Chinese input method support (=pyim=)
- c/c++ support with LSP (/Language Server Protocol/)
- python support
- cmake support
- git support (=magit=)
- on-the-fly syntax checking (=flycheck=)
- org mode live preview
- markdown support
- lua support
- rainbow delimiters

** Usage

*** Evil

- =evil-mode= is default enabled globally, see [[https://github.com/emacs-evil/evil][this github page]] and [[./lisp/init-evil.el][init-evil.el]] for more details.

*** Chinese input method

- =pyim= is used as Chinese input method. Use =C-\= to activate or deactivate the input method.
- By default I use /xiaohe-shuangpin/, which may not suit you. Please see [[./lisp/init-pyim.el][init-pyim.el]] and [[https://github.com/tumashu/pyim][pyim github page]] for more details.

*** Markdown

**** Live Preview

- This feature rely on package =vmd-mode=, which requires =vmd= in /PATH/. Use =npm install -g vmd= to install.
- Shortkey to enable: =M-x + vmd-mode + RET=

*** LSP

- To leverage the power of LSP (/Language Protocol Server/), use =M-x + lsp + RET= to enable =lsp-mode=
- To make =lsp-mode= work, you have to install corresponding language server. See [[https://emacs-lsp.github.io/lsp-mode/page/languages][this page]] for details.
- Once =lsp-mode= is activate, use shortkey =C-c l= to open a popup menu containing other avalible operations.
- See also [[https://github.com/emacs-lsp/lsp-mode][lsp-mode github page]]

*** C/C++

- C/C++ support completely based on =lsp-mode=. To make =lsp-mode= work, install =clangd= or =ccls= as backend.
- See also /LSP/ section.

*** Orgmode

**** Live Preview

- Shortkey to enable it: =M-x + air-org-preview + RET=. It will open the live preview in default browser.

*** Code Formatter

- Use shortkey: =C-M-l= to format current buffer.
- This feature rely on =format-all=.
Not every language is supported, you have to install corresponding backend formatters.
See [[https://github.com/lassik/emacs-format-all-the-code#supported-languages][this page]] for more information.

*** On-the-fly syntax checking

- This feature is provided by =flycheck=, which requires external syntax checker programs,
see [[https://www.flycheck.org/en/latest/languages.html#flycheck-languages][this page]] for more information.

*** Customize font

- You can use =cnfonts= to customize both English fonts and Chinese fonts.
- See the =set FONT= section in [[./lisp/init-ui.el][init-ui.el]] and [[https://github.com/tumashu/cnfonts][cnfonts github page]]

** Enabled plugins

Package archive: http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/, http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/

Some dependencies may not be included here.

*** Package Manage

- auto-package-update
- use-package

*** C/C++

- lsp-mode

*** Python

- anaconda-mode
- company-anaconda

*** Org mode

- impatient-mode
- simple-httpd

*** Git

- magit

*** Markdown

- markdown-mode
- vmd-mode

*** Lua

- lua-mode

*** UI

- posframe
- rainbow-delimiters
- smartparens
- smooth-scrolling
- spacemacs-theme
- whitespace

*** Other packages

- company
- counsel
- evil-mode
- flycheck
- format-all
- hungry-delete
- pyim
- smex
- sr-speedbar
- which-key