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,36 +2437,31 @@ items follow a style that is consistent with other prog-modes."
(use-package hackernews :commands hackernews) (use-package hackernews :commands hackernews)
;; ============================================================================= #+END_SRC
;; Appearance
;; =============================================================================
(defvar packages-appearance * 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 '(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)) ample-theme material-theme zerodark-theme color-theme-modern leuven-theme))
(ensure-packages-installed packages-appearance) (ensure-packages-installed packages-appearance)
#+END_SRC
(setq inhibit-startup-screen t) ** Other Packages
(blink-cursor-mode -1) #+BEGIN_SRC emacs-lisp
(use-package window-number)
;; make whitespace-mode use just basic coloring (use-package spaceline-config
(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)
(use-package window-number)
(use-package spaceline-config
:ensure spaceline :ensure spaceline
:config :config
(progn (progn
@ -2478,6 +2473,34 @@ items follow a style that is consistent with other prog-modes."
(setq-default powerline-default-separator 'utf-8)) (setq-default powerline-default-separator 'utf-8))
(setq powerline-height 25) (setq powerline-height 25)
(spaceline-spacemacs-theme))) (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 ;; Themes
@ -2569,7 +2592,13 @@ items follow a style that is consistent with other prog-modes."
(add-hook 'after-make-frame-functions 'imalison:appearance) (add-hook 'after-make-frame-functions 'imalison:appearance)
(remove-hook 'after-make-frame-functions 'imalison:appearance) (remove-hook 'after-make-frame-functions 'imalison:appearance)
#+END_SRC
* Footer
#+BEGIN_SRC emacs-lisp
;; Local Variables: ;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc) ;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)
;; End: ;; End:
#+END_SRC #+END_SRC