Separate themes to its own file, add spelling config

TODO:
* fix flyspell not loading on every buffer
* Add other dictionaries to flyspell (Polish)
This commit is contained in:
Maciej Szlosarczyk 2017-04-20 11:34:50 +03:00
parent d09ee89c44
commit a9fa2b4456
No known key found for this signature in database
GPG key ID: 0D4EEACF63D4262E
6 changed files with 98 additions and 62 deletions

View file

@ -38,66 +38,6 @@
(column-number-mode 1)
(global-hl-line-mode)
;; Use smart-mode-line
(require 'smart-mode-line)
(setq sml/no-confirm-load-theme t)
(sml/setup)
(sml/apply-theme 'light)
;; NOTE: airline is extremely slow, do not use it
;; (require 'airline-themes)
;; (airline-themes-set-modeline)
;; TODO: Figure out how to load a theme randomly.
;; (load-theme 'ujelly t t)
(load-theme 'avk-daylight t t)
(load-theme 'monokai t t)
;; (load-theme 'flatui t t)
(load-theme 'atom-one-dark t t)
(load-theme 'flatui t t)
;; (load-theme 'airline-doom-one)
;; (load-theme 'airline-base16-shell-dark)
(require 'helm-themes)
(if (display-graphic-p)
(progn
(enable-theme 'flatui))
;; (enable-theme 'airline-doom-one)
;; (helm-themes 'avk-daylight t))
(progn
(enable-theme 'monokai))
;; (helm-themes 'monokai t))
;; (enable-theme 'airline-base16-shell-dark)
)
(color-theme-approximate-on)
;; (setq airline-helm-colors t)
;; (setq airline-cursor-colors t)
;; (setq airline-eshell-colors t)
;; Neotree theme
(setq neo-theme 'arrow)
;; Add mode line icons items
;; (mode-icons-mode)
;; Match parenthasis (left-right)
(electric-pair-mode 1)
; Rainbow parenthesis
(require 'rainbow-delimiters)
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
;;; In app mode, use hasklig font
(set-face-attribute 'default nil :font "Hasklig 13")
(set-face-attribute 'mode-line nil :font "Hasklig 12")
(set-face-attribute 'linum nil :font "Hasklig 13")
;;; When pasting/writing over a selection, replace it.
(delete-selection-mode 1)
;; Neotree
;; (require 'neotree)
;; (require 'all-the-icons)
@ -135,6 +75,16 @@
; Add code snippets as in sublime
(yas-global-mode t)
;; Match parenthasis (left-right)
(electric-pair-mode 1)
; Rainbow parenthesis
(require 'rainbow-delimiters)
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
;;; When pasting/writing over a selection, replace it.
(delete-selection-mode 1)
;;;;;;;;;;;;;;;;;;;;;;;; additional features ;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Add completion
@ -188,4 +138,5 @@
(load "~/.emacs.d/ruby.el")
(load "~/.emacs.d/elixir.el")
(load "~/.emacs.d/javascript.el")
(load "~/.emacs.d/web-mode.el")
;;; behaviour.el ends here