GithubHelp home page GithubHelp logo

taixuzhi / dotfiles Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yangfuyuan/dotfiles

0.0 1.0 0.0 8.04 MB

This is an awesome config files.

Emacs Lisp 74.72% YASnippet 7.32% Shell 14.96% Ruby 1.15% Python 1.49% Vim Script 0.36%

dotfiles's Introduction

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).

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

emacs

编写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文件重试。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.