|
|
@ -2,10 +2,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
(require 'package) |
|
|
|
(require 'package) |
|
|
|
|
|
|
|
|
|
|
|
;;; either the stable version: |
|
|
|
|
|
|
|
(add-to-list |
|
|
|
(add-to-list |
|
|
|
'package-archives |
|
|
|
'package-archives |
|
|
|
;; '("melpa" . "http://stable.melpa.org/packages/") ; many packages won't show if using stable |
|
|
|
|
|
|
|
'("melpa" . "http://melpa.milkbox.net/packages/") |
|
|
|
'("melpa" . "http://melpa.milkbox.net/packages/") |
|
|
|
t) |
|
|
|
t) |
|
|
|
(add-to-list |
|
|
|
(add-to-list |
|
|
@ -13,10 +11,6 @@ |
|
|
|
'("org" . "https://orgmode.org/elpa/") |
|
|
|
'("org" . "https://orgmode.org/elpa/") |
|
|
|
t) |
|
|
|
t) |
|
|
|
|
|
|
|
|
|
|
|
;; Added by Package.el. This must come before configurations of |
|
|
|
|
|
|
|
;; installed packages. Don't delete this line. If you don't want it, |
|
|
|
|
|
|
|
;; just comment it out by adding a semicolon to the start of the line. |
|
|
|
|
|
|
|
;; You may delete these explanatory comments. |
|
|
|
|
|
|
|
(package-initialize) |
|
|
|
(package-initialize) |
|
|
|
|
|
|
|
|
|
|
|
(unless (package-installed-p 'use-package) |
|
|
|
(unless (package-installed-p 'use-package) |
|
|
@ -29,15 +23,19 @@ |
|
|
|
; install evil |
|
|
|
; install evil |
|
|
|
(use-package evil |
|
|
|
(use-package evil |
|
|
|
:ensure t |
|
|
|
:ensure t |
|
|
|
:config |
|
|
|
:config (evil-mode 1) |
|
|
|
(evil-mode 1)) |
|
|
|
:bind ((:map evil-normal-state-map ("C-w <down>" . evil-window-down)) |
|
|
|
|
|
|
|
(:map evil-normal-state-map ("C-w <up>" . evil-window-up)) |
|
|
|
|
|
|
|
(:map evil-normal-state-map ("C-w <right>" . evil-window-right)) |
|
|
|
|
|
|
|
(:map evil-normal-state-map ("C-W <left>" . evil-window-left)) |
|
|
|
|
|
|
|
(:map evil-normal-state-map ("-" . find-file)))) |
|
|
|
|
|
|
|
|
|
|
|
; Org-mode |
|
|
|
; Org-mode |
|
|
|
(use-package org |
|
|
|
(use-package org |
|
|
|
:ensure t) |
|
|
|
:ensure t |
|
|
|
(global-set-key "\C-cl" 'org-store-link) |
|
|
|
:bind (("\C-cl" . org-store-link) |
|
|
|
(global-set-key "\C-ca" 'org-agenda) |
|
|
|
("\C-ca" . org-agenda) |
|
|
|
(global-set-key "\C-cb" 'org-iswtichb) |
|
|
|
("\C-cb" . org-iswtichb))) |
|
|
|
|
|
|
|
|
|
|
|
; Markdown mode |
|
|
|
; Markdown mode |
|
|
|
(use-package markdown-mode |
|
|
|
(use-package markdown-mode |
|
|
@ -50,8 +48,8 @@ |
|
|
|
; install fill-column-indicador: right side gutter |
|
|
|
; install fill-column-indicador: right side gutter |
|
|
|
(use-package fill-column-indicator |
|
|
|
(use-package fill-column-indicator |
|
|
|
:ensure t) |
|
|
|
:ensure t) |
|
|
|
|
|
|
|
|
|
|
|
; install powerline |
|
|
|
; install powerline |
|
|
|
|
|
|
|
|
|
|
|
(use-package powerline |
|
|
|
(use-package powerline |
|
|
|
:ensure t |
|
|
|
:ensure t |
|
|
|
:config (powerline-center-evil-theme)) |
|
|
|
:config (powerline-center-evil-theme)) |
|
|
@ -61,25 +59,28 @@ |
|
|
|
:ensure t) |
|
|
|
:ensure t) |
|
|
|
|
|
|
|
|
|
|
|
; colorscheme |
|
|
|
; colorscheme |
|
|
|
; (use-package monokai-theme |
|
|
|
(use-package monokai-pro-theme |
|
|
|
; :ensure t) |
|
|
|
|
|
|
|
(use-package nord-theme |
|
|
|
|
|
|
|
:ensure t) |
|
|
|
:ensure t) |
|
|
|
|
|
|
|
(load-theme 'monokai-pro) |
|
|
|
|
|
|
|
|
|
|
|
(custom-set-variables |
|
|
|
(custom-set-variables |
|
|
|
;; custom-set-variables was added by Custom. |
|
|
|
;; custom-set-variables 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. |
|
|
|
;; 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. |
|
|
|
'(custom-enabled-themes (quote (nord))) |
|
|
|
'(ansi-color-names-vector |
|
|
|
|
|
|
|
["#2d2a2e" "#ff6188" "#a9dc76" "#ffd866" "#78dce8" "#ab9df2" "#a1efe4" "#fcfcfa"]) |
|
|
|
|
|
|
|
'(ansi-term-color-vector |
|
|
|
|
|
|
|
[unspecified "#2d2a2e" "#ff6188" "#a9dc76" "#ffd866" "#78dce8" "#ab9df2" "#a1efe4" "#fcfcfa"]) |
|
|
|
|
|
|
|
'(custom-enabled-themes (quote (monokai-pro))) |
|
|
|
'(custom-safe-themes |
|
|
|
'(custom-safe-themes |
|
|
|
(quote |
|
|
|
(quote |
|
|
|
("bd7b7c5df1174796deefce5debc2d976b264585d51852c962362be83932873d9" "039eb505cec29b4521ce5ecf5abf523492005f0c65d0640f62e53e2d3068b393" "6c0a087a4f49c04d4002393ffd149672f70e4ab38d69bbe8b39059b61682b61c" default))) |
|
|
|
("f10e50d86ec09152a03fcc3b251ba698610b2e5baa73699297a8bb37a419f3c8" "11e57648ab04915568e558b77541d0e94e69d09c9c54c06075938b6abc0189d8" "7f6d4aebcc44c264a64e714c3d9d1e903284305fd7e319e7cb73345a9994f5ef" "bd7b7c5df1174796deefce5debc2d976b264585d51852c962362be83932873d9" "039eb505cec29b4521ce5ecf5abf523492005f0c65d0640f62e53e2d3068b393" "6c0a087a4f49c04d4002393ffd149672f70e4ab38d69bbe8b39059b61682b61c" default))) |
|
|
|
'(inhibit-startup-screen t) |
|
|
|
'(inhibit-startup-screen t) |
|
|
|
'(org-agenda-files (quote ("~/Documents/index.org"))) |
|
|
|
'(org-agenda-files (quote ("~/Documents/index.org"))) |
|
|
|
'(package-selected-packages |
|
|
|
'(package-selected-packages |
|
|
|
(quote |
|
|
|
(quote |
|
|
|
(markdown-mode org-evil org-link-minor-mode rust-mode evil-quickscope evil-tabs ## scala-mode evil-leader editorconfig diff-hl neotree helm-ag helm-projectile projectile helm hlinum fill-column-indicator evil monokai-theme cider)))) |
|
|
|
(monokai-pro-theme markdown-mode org-evil org-link-minor-mode rust-mode evil-quickscope evil-tabs ## evil-leader editorconfig diff-hl neotree helm-ag helm-projectile projectile helm hlinum fill-column-indicator evil monokai-theme cider)))) |
|
|
|
(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. |
|
|
@ -100,16 +101,6 @@ |
|
|
|
(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1))) |
|
|
|
(define-globalized-minor-mode global-fci-mode fci-mode (lambda () (fci-mode 1))) |
|
|
|
(global-fci-mode 1) |
|
|
|
(global-fci-mode 1) |
|
|
|
|
|
|
|
|
|
|
|
(define-key evil-normal-state-map (kbd "C-w <down>") 'evil-window-down) |
|
|
|
|
|
|
|
(define-key evil-normal-state-map (kbd "C-w <up>") 'evil-window-up) |
|
|
|
|
|
|
|
(define-key evil-normal-state-map (kbd "C-w <right>") 'evil-window-right) |
|
|
|
|
|
|
|
(define-key evil-normal-state-map (kbd "C-w <left>") 'evil-window-left) |
|
|
|
|
|
|
|
(define-key evil-normal-state-map (kbd "-") 'find-file) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; most of this stuff was taken from https://brainlessdeveloper.com/2017/12/27/making-emacs-work-like-my-vim-setup/ |
|
|
|
|
|
|
|
; and https://github.com/brainlessdeveloper/emacs.d |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; line numbers |
|
|
|
; line numbers |
|
|
|
(global-linum-mode 1) |
|
|
|
(global-linum-mode 1) |
|
|
|
(defun configure-linum-colors () |
|
|
|
(defun configure-linum-colors () |
|
|
@ -135,21 +126,6 @@ |
|
|
|
; auto-pairs |
|
|
|
; auto-pairs |
|
|
|
(electric-pair-mode 1) |
|
|
|
(electric-pair-mode 1) |
|
|
|
|
|
|
|
|
|
|
|
; scala support |
|
|
|
|
|
|
|
(use-package scala-mode |
|
|
|
|
|
|
|
:interpreter |
|
|
|
|
|
|
|
("scala" . scala-mode)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; rust support |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; neotree is a nerdtree like |
|
|
|
|
|
|
|
(use-package neotree :ensure t) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter) |
|
|
|
|
|
|
|
(evil-define-key 'normal neotree-mode-map (kbd "SPC") 'neotree-quick-look) |
|
|
|
|
|
|
|
(evil-define-key 'normal neotree-mode-map (kbd "q") 'neotree-hide) |
|
|
|
|
|
|
|
(evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; git gutters |
|
|
|
; git gutters |
|
|
|
(use-package diff-hl |
|
|
|
(use-package diff-hl |
|
|
|
:ensure t |
|
|
|
:ensure t |
|
|
@ -162,14 +138,12 @@ |
|
|
|
; install editorconfig |
|
|
|
; install editorconfig |
|
|
|
(use-package editorconfig |
|
|
|
(use-package editorconfig |
|
|
|
:ensure t |
|
|
|
:ensure t |
|
|
|
:config |
|
|
|
:config (editorconfig-mode 1)) |
|
|
|
(editorconfig-mode 1)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; install evil-leader and set it as space |
|
|
|
; install evil-leader and set it as space |
|
|
|
(use-package evil-leader |
|
|
|
(use-package evil-leader |
|
|
|
:ensure t |
|
|
|
:ensure t |
|
|
|
:config |
|
|
|
:config (global-evil-leader-mode)) |
|
|
|
(global-evil-leader-mode)) |
|
|
|
|
|
|
|
(evil-leader/set-leader "<SPC>") |
|
|
|
(evil-leader/set-leader "<SPC>") |
|
|
|
|
|
|
|
|
|
|
|
(evil-leader/set-key |
|
|
|
(evil-leader/set-key |
|
|
|