Skip to content

Commit

Permalink
Modify package manager to cask
Browse files Browse the repository at this point in the history
  • Loading branch information
crossorbit committed Jan 10, 2017
1 parent 2d8123c commit df73585
Show file tree
Hide file tree
Showing 7 changed files with 326 additions and 209 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*/.cask
119 changes: 119 additions & 0 deletions emacs.d/Cask
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
;; 源定义
(source "gnu" "http://elpa.emacs-china.org/gnu/")
(source "melpa" "http://elpa.emacs-china.org/melpa/")
(source "org" "http://epla.emacs-china.org/org/")

;; 包管理
(depends-on "cask")
(depends-on "use-package")

;; 快捷键
(depends-on "bind-key")

;; 界面
(depends-on "gruvbox-theme")
;; 缩进
(depends-on "indent-guide")
(depends-on "aggressive-indent")
;; 图标
(depends-on "all-the-icons")
(depends-on "mode-icons")
;; 窗口操作
(depends-on "popwin")
;; 首页
(depends-on "init-open-recentf")
;; 高亮当前行和列
(depends-on "crosshairs")

;; 按键提示
(depends-on "which-key")
;; 文件列表
(depends-on "neotree")
;; 标签页
(depends-on "tabbar")
;; 自动保存
(depends-on "super-save")
;; bookmarks
(depends-on "bm")
;; 目录增强
(depends-on "dired+")
(depends-on "direx")
;; 打开外部应用
(depends-on "crux")
;; undo
(depends-on "undo-tree")
;; exec form path
(depends-on "exec-path-from-shell")

;; editorconfig
(depends-on "editorconfig")
;; 扩展选择区域
(depends-on "expand-region")
;; 自动添加匹配括号
(depends-on "smartparens")
;; 高亮括号
(depends-on "highlight-parentheses")
;;多光标
(depends-on "iedit")


;;快速操作
(depends-on "swiper")
(depends-on "counsel")
;; (if (eq system-type 'darwin)
(depends-on "counsel-osx-app") ;;)

;; 搜索
(depends-on "fzf")
(depends-on "avy")
(depends-on "ag")
(depends-on "ace-jump-mode")

;; 开发
;; 智能提示
(depends-on "company")
(depends-on "company-ycmd")
(depends-on "company-web")
(depends-on "company-go")
(depends-on "company-c-headers")
;; 代码帮助
;; (if (eq system-type 'darwin)
(depends-on "dash-at-point")
;; (depends-on "zeal-at-point"))

;; 代码片段补全
(depends-on "yasnippet")
;;代码跳转
(depends-on "ggtags")
(depends-on "xcscope")

;; git
(depends-on "magit")
(depends-on "git-gutter")

;; 代码检查
(depends-on "flycheck")
(depends-on "flycheck-cask")
(depends-on "flycheck-ycmd")
;; google
(depends-on "flycheck-google-cpplint")
(depends-on "google-c-style")

;; 项目管理
(depends-on "projectile")

;; python
(depends-on "elpy")
(depends-on "anaconda-mode")

;; web
(depends-on "js2-mode")
(depends-on "web-mode")
(depends-on "emmet-mode")

;; markdown
(depends-on "markdown-mode")

;; go
(depends-on "go-mode")
(depends-on "company-go")
2 changes: 1 addition & 1 deletion emacs.d/lisp/custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'(nil nil t)
'(package-selected-packages
(quote
(gruvbox-theme dashboard counsel-gtags fzf py-autopep8 counsel counsel-osx-app counsel-projectile swiper crosshairs bm init-open-recentf mode-icons all-the-icons xcscope window-numbering which-key web-mode tabbar super-save smartparens popwin popup neotree molokai-theme markdown-mode magit js2-mode indent-guide iedit highlight-parentheses google-c-style git-gutter ggtags flycheck-ycmd flycheck-google-cpplint expand-region exec-path-from-shell evil emmet-mode elpy editorconfig ecb dracula-theme direx dired+ dash-at-point crux company-ycmd company-web company-quickhelp company-go company-c-headers command-log-mode cmake-mode avy anaconda-mode aggressive-indent ag ace-jump-mode))))
(use-package gruvbox-theme dashboard counsel-gtags fzf py-autopep8 counsel counsel-osx-app counsel-projectile swiper crosshairs bm init-open-recentf mode-icons all-the-icons xcscope window-numbering which-key web-mode tabbar super-save smartparens popwin popup neotree molokai-theme markdown-mode magit js2-mode indent-guide iedit highlight-parentheses google-c-style git-gutter ggtags flycheck-ycmd flycheck-google-cpplint expand-region exec-path-from-shell evil emmet-mode elpy editorconfig ecb dracula-theme direx dired+ dash-at-point crux company-ycmd company-web company-quickhelp company-go company-c-headers command-log-mode cmake-mode avy anaconda-mode aggressive-indent ag ace-jump-mode))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
Expand Down
43 changes: 24 additions & 19 deletions emacs.d/lisp/init-dev.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,41 @@
(setq-default tab-width 4)
(setq-default indent-tabs-mode nil)

(require 'yasnippet)
(yas-global-mode t)
(setq-default tab-width 4)
(setq-default indent-tabs-mode nil)
(use-package yasnippet
:config
(yas-global-mode t))

;; (setq-default tab-width 4)
;; (setq-default indent-tabs-mode nil)

;; editorconfig
(require 'editorconfig)
(editorconfig-mode t)
(use-package editorconfig
:config
(editorconfig-mode t))

;; $PATH
(require 'exec-path-from-shell)
(exec-path-from-shell-initialize)
(use-package exec-path-from-shell
:config
(exec-path-from-shell-initialize))

;; 缩进线
(indent-guide-global-mode)

(require 'git-gutter)
(global-git-gutter-mode t)
(git-gutter:linum-setup)
;; (indent-guide-global-mode)

;; (require 'projectile)
;; (projectile-global-mode)
(use-package git-gutter
:config
(global-git-gutter-mode t)
(git-gutter:linum-setup))

(cscope-minor-mode t)
(use-package cscope
:config
(cscope-minor-mode t))
(ggtags-mode t)
;;(ggtags-global-mode t)

(require 'flycheck)
(global-flycheck-mode t)
(flycheck-ycmd-setup)
(use-package flycheck
:config
(global-flycheck-mode t)
(flycheck-ycmd-setup))

;;(require 'company)
;;(require 'company-clang)
Expand Down
Loading

0 comments on commit df73585

Please sign in to comment.