diff options
author | Alan Pearce | 2016-12-06 13:43:06 +0100 |
---|---|---|
committer | Alan Pearce | 2016-12-06 13:43:06 +0100 |
commit | a9c83c6d0a04425fbda8735d91edef7d34f24d79 (patch) | |
tree | 799d9e89d13b958226113edd0ac1ec9108418e2b /tag-emacs | |
parent | 0b710a178ba1ecf7bb3491f47ef8845d37754e7c (diff) | |
download | dotfiles-a9c83c6d0a04425fbda8735d91edef7d34f24d79.tar.lz dotfiles-a9c83c6d0a04425fbda8735d91edef7d34f24d79.tar.zst dotfiles-a9c83c6d0a04425fbda8735d91edef7d34f24d79.zip |
Emacs: Try basic-theme instead of minimal-light
Diffstat (limited to 'tag-emacs')
-rw-r--r-- | tag-emacs/emacs.d/init.org | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 6f385fa..82a2c0e 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -130,10 +130,35 @@ Let’s try a more minimal theme. #+BEGIN_SRC emacs-lisp (use-package minimal-theme + :disabled t :config (progn (load-theme 'minimal-light t))) #+END_SRC +Let’s try a basic theme. + +#+BEGIN_SRC emacs-lisp + (use-package basic-theme + :config (progn + (load-theme 'basic t) + (defun mode-line-visual-toggle () + (interactive) + (let ((faces-to-toggle '(mode-line mode-line-inactive)) + (invisible-color "#e8e8e8") + (visible-color "#a1b56c")) + (cond ((string= visible-color (face-attribute 'mode-line :background)) + (mapcar (lambda (face) + (set-face-background face invisible-color) + (set-face-attribute face nil :height 20)) + faces-to-toggle)) + (t + (mapcar (lambda (face) + (set-face-background face visible-color) + (set-face-attribute face nil :height (face-attribute 'default :height))) + faces-to-toggle))))) + (mode-line-visual-toggle))) +#+END_SRC + Highlighting quasi-quoted expressions in lisps is quite useful. #+BEGIN_SRC emacs-lisp (use-package highlight-stages |