生命不息,折腾不止,哈哈!
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
core
lisp
vendor
.gitignore
Makefile
README.org
init.el
screenshot.png

README.org

简介

参考 spacemacs 配置定制的个人在使用的 emacs 配置文件,主要适配 go 语言开发环境,采用 evil 模拟 vim 按键。 screenshot.png

安装

git clonet https://github.com/lkzz/emacs.d ~/.emacs.d

特性

支持语言

  • golang,elisp,rust,lua
  • json,yaml,toml,markdown
  • bazel,protobu

自动补全

  • company
  • company-box
  • company-english-helper

错误检查

  • flycheck
  • avy-flycheck
  • flycheck-posframe

版本控制

  • maigt
  • smerge
  • diff-hl
  • git-timemachine

中文支持

  • cnfont
  • youdao dictionary
  • pyim
  • cal-china-x

文件管理

  • dired
  • ranger
  • neotree

窗口管理

  • ace-window
  • golden-ratio
  • resize-window
  • centered-window
  • window-numbering

按键绑定

主要参考 spacemacs 的按键绑定方式,详细快捷键如下:

  • evil
    Key BindingDescription
    leader-key amwim-beginning-of-code-or-line
    leader-key wevil-write
    leader-key Wevil-write-all
    leader-key qevil-quit
    leader-key dkill word
    leader-key ycopy word
    leader-key ppaste word
    C-wevil-delete-backward-word
  • window
    Key BindingDescription
    SPC woswitch other window
    SPC wrresize window
    SPC wddelete window
    SPC wDdelete other window
    SPC w/split window right and focus
    SPC w-split window below and focus
    SPC w1select window 1
    SPC w2select window 2
    SPC w3select window 3
    SPC w4select window 4
  • toggle
    Key BindingDescription
    SPC tgtoggle golden ratio mode
    SPC fttoggle neotree
    SPC t-toggle center mode
    SPC tftoggle fullscreen
    SPC twtoggle word wrap
    SPC tstoggle symbol overlay mode
    SPC tttoggle truncate line
    C-c tetoggle english helper
  • bookmark
    Key BindingDescription
    SPC msbookmark-set
    SPC mrbookmark-rename
    SPC mdbookmark-delete
    SPC mjhelm-filtered-bookmarks
    SPC mlbookmark-bmenu-list
  • buffer
    Key BindingDescription
    SPC bbivy switch buffer
    SPC bcclent buffer
    SPC beeval buffer
    SPC bdkill this buffer
    SPC bDkill other buffer
    SPC bkkill buffer
    SPC blibuffer list buffer
    SPC bmkill all buffer
    SPC bnswitch to next buffer
    SPC bpswitch to prev buffer
    SPC bssave buffer
    SPC bgrevert buffer
  • cursor move
    Key BindingDescription
    C-amwim-beginning-of-line
    C-emwim-end-of-code-or-line
    SPC jpgoto-match-parent
    SPC jlgoto-line
  • application
    Key BindingDescription
    SPC aacounsel osx application
    SPC aiopen iterm2
    SPC awopen wechat
    SPC ayopen youdao directory
  • other
    Key BindingDescription
    C-c yyoudao directory search
    C-\pyim
    SPC /rg search
    SPC '~ | ~eshell popup