Skip to content

huashuichengbing/dotfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

This is an awesome config files.

include:

.zshrc
terminator
gitconfig
Vagrantfile
polipo

install ubuntu

usage:
     install-ubuntu.sh init                 : install initial software in init_sws.
     install-ubuntu.sh base                 : install basic software in base_sws.
     install-ubuntu.sh option               : install optional software in option_sws.
     install-ubuntu.sh single SOFTWARE_NAME : install single software.

link config files

link terminator config, .emacs.d, .zshrc, gitconfig, vimrc(TODO).

  • ./configs/terminator.conf ${HOME}/.config/terminator/config
  • ./configs/gitconfig ${HOME}/.gitconfig
  • ./configs/zshrc.sh ${HOME}/.zshrc
  • ./emacs.d ${HOME}/.emacs.d
  • ./configs/vimrc ${HOME}/.vimrc
./link_configs.sh

emacs

Here emacs need version 25.+.

编写emacs相关内容的时候,常用的快捷键:

快捷键说明
Ctrl+h查看帮助
Ctrl+h f查看函数
Ctrl+h v查看变量
Ctrl+h k查看快捷键绑定的函数
package说明link
diminish
which-key提示可得的快捷键。
comment-dwim-2设置全局键做注释,可以段注释,行前注释,行尾注释
avy选择跳转到某个字符。
multiple-cursors
hl-line强调当前行。
helm查找各种文件内容,buffer切换,emacs命令执行等等。
hideshow隐藏显示。
highlight-symbol符号显示。
flycheck语法检测。
yasnippet模板工具
hippie-exp-ext编码补全
magitgit操作
git-guttergit 项目显示
ag, helm-ag查找工具
projectile, helm-projectile项目相关
company补全工具http://company-mode.github.io/
dired文件目录操作
dired-kzsh的k一样显示目录https://github.com/syohex/emacs-dired-k
evil使用2017版

helm: 模糊查找文件。

ycmd 自动补全

安装方法参考install-ubuntu.sh ycmd。

要补全你的c++项目,可以通过YCM-Generator生成.ycm_extra_conf.py 文件。这样emacs打开项目的时后会加载这个文件,通过该文件找到 补全。

生成的方法是:

cd YCM-Generator && ./config_gen.py -x c++ ~/YOUR_PROJECT_PATH

目前生成的文件找不到系统的c++函数,因此可以在.ycm_extra_conf.py的flags中添加’-I/usr/include/c++/7’ (根据你使用的c++版本确定,其他没有包含的路径也可以通过同样的方法加入).

GUI不能输入中文

refer to http://wangzhe3224.github.io/emacs/2015/08/31/fcitx-emacs.html

  • 确保安装zh_CN.UTF-8库
    locale -a
        

    看是否有zh_CN.utf8,如果没有要安装。

    安装方法:

    sudo apt-get install -y language-pack-zh-hans
        
  • 配置.zshrc
    export LC_CTYPE=zh_CN.UTF-8
        
  • 在/usr/local/share/application/emacs.desktop中修改
    Exec=env LC_CType=zh_CN.UTF-8 emacs %F
        

org 遇到的问题

  • org有时候输出有问题时可能需要删除elc文件重试。

About

These are awesome config files for Linux.安装软件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 43.2%
  • Shell 32.9%
  • Vim Script 12.8%
  • Python 5.8%
  • YASnippet 4.7%
  • Ruby 0.6%