Huge amount of emacs changes and work
This commit is contained in:
parent
ce200b4ace
commit
c117e73afe
1 changed files with 23 additions and 5 deletions
|
@ -14,8 +14,10 @@
|
||||||
auto-complete
|
auto-complete
|
||||||
evil
|
evil
|
||||||
magit
|
magit
|
||||||
evil-magit
|
|
||||||
base16-theme
|
base16-theme
|
||||||
|
evil-collection
|
||||||
|
undo-tree
|
||||||
|
which-key
|
||||||
))
|
))
|
||||||
|
|
||||||
(dolist (p my-packages)
|
(dolist (p my-packages)
|
||||||
|
@ -23,6 +25,7 @@
|
||||||
(package-install p)))
|
(package-install p)))
|
||||||
|
|
||||||
(load-theme 'base16-oceanicnext t)
|
(load-theme 'base16-oceanicnext t)
|
||||||
|
(which-key-mode)
|
||||||
|
|
||||||
(custom-set-variables
|
(custom-set-variables
|
||||||
;; custom-set-variables was added by Custom.
|
;; custom-set-variables was added by Custom.
|
||||||
|
@ -30,7 +33,11 @@
|
||||||
;; Your init file should contain only one such instance.
|
;; Your init file should contain only one such instance.
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(lispy smartparens which-key git-gutter rainbow-delimiters auto-complete-distel auto-complete evil magit evil-magit)))
|
'(lispy smartparens which-key git-gutter rainbow-delimiters auto-complete-distel auto-complete evil magit evil-magit))
|
||||||
|
'(undo-tree-auto-save-history t)
|
||||||
|
'(undo-tree-history-directory-alist '(("." . "~/.undohist-emacs")))
|
||||||
|
'(undo-tree-visualizer-diff t)
|
||||||
|
'(undo-tree-visualizer-timestamps t))
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
@ -38,19 +45,30 @@
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
)
|
)
|
||||||
|
|
||||||
|
;; Undo-tree
|
||||||
|
(global-undo-tree-mode)
|
||||||
|
|
||||||
;; Autocomplete
|
;; Autocomplete
|
||||||
(require 'auto-complete)
|
(require 'auto-complete)
|
||||||
(global-auto-complete-mode t)
|
(global-auto-complete-mode t)
|
||||||
|
|
||||||
;; EVIL
|
;; EVIL
|
||||||
|
(setq evil-want-keybinding nil)
|
||||||
(require 'evil)
|
(require 'evil)
|
||||||
(define-key evil-normal-state-map (kbd "C-k") 'evil-scroll-up)
|
(evil-collection-init)
|
||||||
(define-key evil-normal-state-map (kbd "C-j") 'evil-scroll-down)
|
(evil-set-leader 'normal (kbd "SPC"))
|
||||||
|
(evil-define-key 'normal 'global (kbd "C-k") 'evil-scroll-up)
|
||||||
|
(evil-define-key 'normal 'global (kbd "C-j") 'evil-scroll-down)
|
||||||
|
(evil-define-key 'normal 'global (kbd "<leader>l") 'evil-window-right)
|
||||||
|
(evil-define-key 'normal 'global (kbd "<leader>h") 'evil-window-left)
|
||||||
|
(evil-define-key 'normal 'global (kbd "<leader>j") 'evil-window-up)
|
||||||
|
(evil-define-key 'normal 'global (kbd "<leader>k") 'evil-window-down)
|
||||||
|
(evil-define-key 'normal 'global (kbd "<leader>i") 'help)
|
||||||
(evil-mode 1)
|
(evil-mode 1)
|
||||||
(require 'evil-magit)
|
|
||||||
|
|
||||||
;; Rainbow Delims
|
;; Rainbow Delims
|
||||||
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
|
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
|
||||||
|
(show-paren-mode)
|
||||||
|
|
||||||
;; Git gutter
|
;; Git gutter
|
||||||
(global-git-gutter-mode +1)
|
(global-git-gutter-mode +1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue