Make appearance section literate

This commit is contained in:
Ivan Malison 2016-06-06 15:54:51 -07:00
parent b99bca2755
commit 08083b5bb2

View File

@ -2437,33 +2437,28 @@ items follow a style that is consistent with other prog-modes."
(use-package hackernews :commands hackernews)
;; =============================================================================
;; Appearance
;; =============================================================================
#+END_SRC
* Appearance
** Config
#+BEGIN_SRC emacs-lisp
(setq inhibit-startup-screen t)
(blink-cursor-mode -1)
#+END_SRC
** Themes
Ensure all themes that I use are installed:
#+BEGIN_SRC emacs-lisp
(defvar packages-appearance
'(monokai-theme solarized-theme zenburn-theme base16-theme molokai-theme
tango-2-theme gotham-theme sublime-themes ansi-color rainbow-delimiters
tango-2-theme gotham-theme sublime-themes rainbow-delimiters waher-theme
ample-theme material-theme zerodark-theme color-theme-modern leuven-theme))
(ensure-packages-installed packages-appearance)
#+END_SRC
(setq inhibit-startup-screen t)
(blink-cursor-mode -1)
;; make whitespace-mode use just basic coloring
(setq whitespace-style (quote (spaces tabs newline space-mark
tab-mark newline-mark)))
(setq whitespace-display-mappings
'((space-mark 32 [183] [46])
(tab-mark 9 [9655 9] [92 9])))
(defun colorize-compilation-buffer ()
(read-only-mode)
(ansi-color-apply-on-region (point-min) (point-max))
(read-only-mode))
(add-hook 'compilation-filter-hook 'colorize-compilation-buffer)
** Other Packages
#+BEGIN_SRC emacs-lisp
(use-package window-number)
(use-package spaceline-config
@ -2478,6 +2473,34 @@ items follow a style that is consistent with other prog-modes."
(setq-default powerline-default-separator 'utf-8))
(setq powerline-height 25)
(spaceline-spacemacs-theme)))
#+END_SRC
** Whitespace Setup
Make whitespace-mode use just basic coloring:
#+BEGIN_SRC emacs-lisp
(setq whitespace-style
'(spaces tabs newline space-mark tab-mark newline-mark))
#+END_SRC
Set the character used to represent spaces to ·, and the character used for tabs to be ▷.
#+BEGIN_SRC emacs-lisp
(setq whitespace-display-mappings
'((space-mark 32 [183] [46])
(tab-mark 9 [9655 9] [92 9])))
#+END_SRC
** Colorize Compliation Buffers
This automatically applies ansi-color interpretation of terminal escape sequences to compilation buffers
#+BEGIN_SRC emacs-lisp
(defun colorize-compilation-buffer ()
(read-only-mode)
(ansi-color-apply-on-region (point-min) (point-max))
(read-only-mode))
(add-hook 'compilation-filter-hook 'colorize-compilation-buffer)
#+END_SRC
** TODO Finish making the following litarate
#+BEGIN_SRC emacs-lisp
;; =============================================================================
;; Themes
@ -2569,7 +2592,13 @@ items follow a style that is consistent with other prog-modes."
(add-hook 'after-make-frame-functions 'imalison:appearance)
(remove-hook 'after-make-frame-functions 'imalison:appearance)
#+END_SRC
* Footer
#+BEGIN_SRC emacs-lisp
;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)
;; End:
#+END_SRC