My Emacs configuration files.
- 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
evil-modeis default enabled globally, see this github page and init-evil.el for more details.
pyimis used as Chinese input method. UseC-\to activate or deactivate the input method.- By default I use xiaohe-shuangpin, which may not suit you. Please see init-pyim.el and pyim github page for more details.
- This feature rely on package
vmd-mode, which requiresvmdin PATH. Usenpm install -g vmdto install. - Shortkey to enable:
M-x + vmd-mode + RET
- To leverage the power of LSP (Language Protocol Server), use
M-x + lsp + RETto enablelsp-mode - To make
lsp-modework, you have to install corresponding language server. See this page for details. - Once
lsp-modeis activate, use shortkeyC-c lto open a popup menu containing other avalible operations. - See also lsp-mode github page
- C/C++ support completely based on
lsp-mode. To makelsp-modework, installclangdorcclsas backend. - See also LSP section.
- Shortkey to enable it:
M-x + air-org-preview + RET. It will open the live preview in default browser.
- Use shortkey:
C-M-lto format current buffer. - This feature rely on
format-all. Not every language is supported, you have to install corresponding backend formatters. See this page for more information.
- This feature is provided by
flycheck, which requires external syntax checker programs, see this page for more information.
- You can use
cnfontsto customize both English fonts and Chinese fonts. - See the
set FONTsection in init-ui.el and cnfonts github page
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.
- auto-package-update
- use-package
- lsp-mode
- anaconda-mode
- company-anaconda
- impatient-mode
- simple-httpd
- magit
- markdown-mode
- vmd-mode
- lua-mode
- posframe
- rainbow-delimiters
- smartparens
- smooth-scrolling
- spacemacs-theme
- whitespace
- company
- counsel
- evil-mode
- flycheck
- format-all
- hungry-delete
- pyim
- smex
- sr-speedbar
- which-key