Last active
June 6, 2017 11:42
-
-
Save tSU-RooT/9fc9fa8c2952625fcc5d04e200df179f to your computer and use it in GitHub Desktop.
X220 init.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'cask "/home/tsr/.cask/cask.el") | |
(cask-initialize) | |
(require 'pallet) | |
(pallet-mode t) | |
(require 'go-autocomplete) | |
(require 'auto-complete-config) | |
(ac-config-default) | |
(require 'quickrun) | |
(add-hook 'before-save-hook 'gofmt-before-save) | |
(add-hook 'go-mode-hook 'go-eldoc-setup) | |
(add-hook 'c-mode-hook | |
(lambda () | |
(set (make-local-variable 'eldoc-idle-delay) 0.20) | |
(c-turn-on-eldoc-mode) | |
)) | |
(with-eval-after-load 'go-mode | |
(define-key go-mode-map (kbd "M-.") 'godef-jump) | |
) | |
; emb | |
(define-key global-map (kbd "C-x g f") 'grep-find) | |
(define-key global-map (kbd "C-x r s") 'replace-string) | |
(define-key global-map (kbd "C-x g l") 'goto-line) | |
(define-key global-map (kbd "C-x c o") 'compile) | |
(define-key global-map (kbd "<menu>") 'other-window) | |
; change | |
(define-key global-map (kbd "C-a") 'back-to-indentation) | |
(define-key global-map (kbd "C-k") 'kill-word) | |
(define-key global-map (kbd "C-l") 'kill-whole-line) | |
;plugin | |
(define-key global-map (kbd "C-x m") 'helm-mini) | |
(define-key global-map (kbd "C-x C-n") 'git-gutter:next-hunk) | |
(define-key global-map (kbd "C-x C-p") 'git-gutter:previous-hunk) | |
;disable | |
;(global-unset-key "C-x b") | |
;(global-unset-key "C-x C-b") | |
(global-git-gutter-mode +1) | |
(global-auto-revert-mode 1) | |
(setq auto-revert-interval 10) | |
(setq auto-revert-check-vc-info t) | |
; server start for emacs-client | |
;(require 'server) | |
;(unless (server-running-p) | |
; (server-start)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment