Fixed up further init.el
This commit is contained in:
parent
00c41cf048
commit
59445bfdbc
1 changed files with 44 additions and 14 deletions
|
@ -4,6 +4,36 @@
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
(package-refresh-contents)
|
(package-refresh-contents)
|
||||||
|
|
||||||
|
(defvar my-packages '(
|
||||||
|
; TODO
|
||||||
|
lispy
|
||||||
|
|
||||||
|
; TODO
|
||||||
|
smartparens
|
||||||
|
|
||||||
|
; TODO
|
||||||
|
which-key
|
||||||
|
|
||||||
|
; TODO
|
||||||
|
git-gutter
|
||||||
|
|
||||||
|
rainbow-delimiters
|
||||||
|
|
||||||
|
auto-complete-distel
|
||||||
|
|
||||||
|
auto-complete
|
||||||
|
|
||||||
|
evil
|
||||||
|
|
||||||
|
magit
|
||||||
|
|
||||||
|
evil-magit
|
||||||
|
))
|
||||||
|
|
||||||
|
(dolist (p my-packages)
|
||||||
|
(when (not (package-installed-p p))
|
||||||
|
(package-install p)))
|
||||||
|
|
||||||
(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.
|
||||||
|
@ -11,7 +41,7 @@
|
||||||
;; 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
|
||||||
(quote
|
(quote
|
||||||
(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)) 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.
|
||||||
|
@ -28,7 +58,7 @@
|
||||||
(define-key evil-normal-state-map (kbd "C-k") 'evil-scroll-up)
|
(define-key evil-normal-state-map (kbd "C-k") 'evil-scroll-up)
|
||||||
(define-key evil-normal-state-map (kbd "C-j") 'evil-scroll-down)
|
(define-key evil-normal-state-map (kbd "C-j") 'evil-scroll-down)
|
||||||
(evil-mode 1)
|
(evil-mode 1)
|
||||||
; (require 'evil-magit)
|
(require 'evil-magit)
|
||||||
|
|
||||||
;; Rainbow Delims
|
;; Rainbow Delims
|
||||||
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
|
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
|
||||||
|
@ -47,21 +77,21 @@
|
||||||
;; (define-key evil-normal-state-map (kbd "C-\\") 'cider-eval-defun-up-to-point)
|
;; (define-key evil-normal-state-map (kbd "C-\\") 'cider-eval-defun-up-to-point)
|
||||||
|
|
||||||
;; Extra things
|
;; Extra things
|
||||||
(global-whitespace-mode 1)
|
; (global-whitespace-mode 1)
|
||||||
|
|
||||||
(progn
|
; (progn
|
||||||
;; Make whitespace-mode with very basic background coloring for whitespaces.
|
;; Make whitespace-mode with very basic background coloring for whitespaces.
|
||||||
;; http://ergoemacs.org/emacs/whitespace-mode.html
|
;; http://ergoemacs.org/emacs/whitespace-mode.html
|
||||||
(setq whitespace-style (quote (face spaces tabs newline space-mark tab-mark newline-mark )))
|
; (setq whitespace-style (quote (face spaces tabs newline space-mark tab-mark newline-mark )))
|
||||||
|
|
||||||
;; Make whitespace-mode and whitespace-newline-mode use “¶” for end of line char and “▷” for tab.
|
;; Make whitespace-mode and whitespace-newline-mode use “¶” for end of line char and “▷” for tab.
|
||||||
(setq whitespace-display-mappings
|
; (setq whitespace-display-mappings
|
||||||
;; all numbers are unicode codepoint in decimal. e.g. (insert-char 182 1)
|
;; all numbers are unicode codepoint in decimal. e.g. (insert-char 182 1)
|
||||||
(quote (
|
; (quote (
|
||||||
(space-mark 32 [183] [46]) ; SPACE 32 「 」, 183 MIDDLE DOT 「·」, 46 FULL STOP 「.」
|
; (space-mark 32 [183] [46]) ; SPACE 32 「 」, 183 MIDDLE DOT 「·」, 46 FULL STOP 「.」
|
||||||
(newline-mark 10 [182 10]) ; LINE FEED,
|
; (newline-mark 10 [182 10]) ; LINE FEED,
|
||||||
(tab-mark 9 [8614]) ; tab
|
; (tab-mark 9 [8614]) ; tab
|
||||||
)
|
; )
|
||||||
)
|
; )
|
||||||
)
|
; )
|
||||||
)
|
; )
|
||||||
|
|
Loading…
Add table
Reference in a new issue