Skip to content

AirManH/.emacs.d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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 init-pyim.el and 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 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 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 this page for more information.

On-the-fly syntax checking

  • This feature is provided by flycheck, which requires external syntax checker programs, see this page for more information.

Customize font

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

About

My Emacs configuration files.

Topics

Resources

Stars

Watchers

Forks