From ce2118242712c70b45107d6c85f117a5da20695c Mon Sep 17 00:00:00 2001 From: jbjjbjjbj Date: Mon, 19 Dec 2016 15:22:15 +0100 Subject: Emacs --- .emacs | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to '.emacs') diff --git a/.emacs b/.emacs index 0ad4ef5..8fe4714 100644 --- a/.emacs +++ b/.emacs @@ -12,7 +12,9 @@ '(global-auto-revert-mode t) '(indent-tabs-mode nil) '(js-indent-level 2) - '(package-selected-packages (quote (neotree))) + '(package-selected-packages + (quote + (magit powerline-evil spaceline js2-mode jedi auto-complete undo-tree dashboard neotree))) '(tab-stop-list (quote (2))) '(tab-width 2) '(xterm-mouse-mode t)) @@ -48,7 +50,31 @@ (global-unset-key "\C-z") -(global-set-key "\C-z" 'advertised-undo) +;;(global-set-key "\C-z" 'advertised-undo) (setq-default tab-width 2) + + + + +(require 'dashboard) +(dashboard-setup-startup-hook) + +(require 'powerline) +(powerline-center-theme) + + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; undo tree mode ;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;turn on everywhere +(global-undo-tree-mode 1) +;; make ctrl-z undo +(global-set-key (kbd "C-z") 'undo) +;; make ctrl-Z redo +(defalias 'redo 'undo-tree-redo) +(global-set-key (kbd "C-S-z") 'redo) + + +(global-set-key (kbd "C-x C-b") 'bs-show) -- cgit v1.2.3