Skip to content
/ emacs.d Public

我的EMACS配置,基于 use-package、straight、evil。

Notifications You must be signed in to change notification settings

lkzz/emacs.d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简介

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

安装

1. git clone https://github.com/lkzz/emacs.d ~/.emacs.d
2. make install

特性

支持语言

  • golang,c++,elisp,rust,lua,python
  • json,yaml,toml,markdown
  • bazel,protobuf

自动补全

  • lsp-mode
  • company
  • company-box
  • company-english-helper

错误检查

  • flycheck
  • avy-flycheck
  • flycheck-posframe

版本控制

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

中文支持

  • youdao dictionary
  • pyim
  • cal-china-x

文件管理

  • dired
  • 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
  • tab
    Key BindingDescription
    leader-key ttawesome-tab-switch-group
    leader-key taawesome-tab-select-beg-tab
    leader-key teawesome-tab-select-end-tab
    leader-key thawesome-tab-move-current-tab-to-left
    leader-key tlawesome-tab-move-current-tab-to-right
    leader-key tnawesome-tab-forward
    leader-key tpawesome-tab-backward
  • window
    Key BindingDescription
    SPC woswitch other window
    SPC wzzone window
    SPC wrresize window
    SPC wttoggle two split 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 tbtoggle scroll bar
    SPC tdtoggle darkroom
    SPC tftoggle fullscreen
    SPC tgtoggle golden ratio mode
    SPC titoggle imenu
    SPC tntoggle neotree
    SPC tstoggle symbol overlay mode
    SPC tttoggle truncate line
    SPC t'toggle eshell
  • 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 jcivy goto char
    SPC jddired jump
    SPC jfjump beginning of function
    SPC jlavy goto line
    SPC jmjump match delimiter
    SPC jpgoto-match-parent
    SPC jwivy goto word
  • comma keybindings
    Key BindingDescription
    , ddelete word
    , ycopy word
    , pcover word
    , fdxref find definitions
    , frxref find reference
    , fffind file at point
    , fsxref find apropos
  • other
    Key BindingDescription
    C-c yyoudao directory search
    C-\pyim
    SPC s/counsel rg search
    SPC ssswiper isearch
    SPC ficounsel recentf
    SPC ffcounsel open file
    SPC fiopen emacs init.el
    s-0text scale reset
    s-=-text scale increase
    s--text scale decrease

About

我的EMACS配置,基于 use-package、straight、evil。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published