forsooth!

By necessity, by proclivity, and by delight, we all quote.

Solarized spacemacs


Setup themes

Solarized by Ethan Schoonover is wonderful, and I use it almost everywhere, just like DejaVu fonts.

In spacemacs I set it up like this:

(defun dotspacemacs/user-init ()
  (setq-default
   dotspacemacs-themes '(solarized-dark
                         solarized-light)
   dotspacemacs-default-font '("DejaVu Sans Mono for Powerline"
                               :size 24
                               :weight normal
                               :width normal
                               :powerline-scale 1.6)
   solarized-use-variable-pitch nil
   solarized-scale-org-headlines nil
   solarized-height-minus-1 1
   solarized-height-plus-1 1
   solarized-height-plus-2 1
   solarized-height-plus-3 1
   solarized-height-plus-4 1
   ))

This keeps all headings for org-mode at the same font size, which guarantees that your fill-column marker and tags are properly aligned across headings of different levels. It also makes navigating org files more pleasant in general, as the buffer is truly monospaced again and your cursor doesn’t take any detours.

I suspect there are similar heading font size settings for other themes, but I haven’t investigated that.

Cycle themes

With the setting above you also get the light theme, which is useful for bright days, presentations, and presentations on bright days. SPC T n cycles through the two themes.

Note: if you use org-bullets, then you will notice that the hidden *s become visible upon switching the theme, because they still have the background color of the opposite theme. This can be remedied by saving the file and reloading it via SPC b R.

#+TITLE: Solarized spacemacs
#+DATE: <2017-10-08 Sun>
#+AUTHOR: @or
#+CATEGORY: tech
#+SUMMARY: Using the solarized themes in spacemacs
#+SLUG: spacemacs-solarized
#+TAGS: org, spacemacs, solarized, font

** Setup themes
[[http://ethanschoonover.com/solarized][Solarized by Ethan Schoonover]] is wonderful, and I use it almost everywhere, just
like [[https://dejavu-fonts.github.io/][DejaVu fonts]].

In spacemacs I set it up like this:
#+begin_src emacs-lisp
(defun dotspacemacs/user-init ()
  (setq-default
   dotspacemacs-themes '(solarized-dark
                         solarized-light)
   dotspacemacs-default-font '("DejaVu Sans Mono for Powerline"
                               :size 24
                               :weight normal
                               :width normal
                               :powerline-scale 1.6)
   solarized-use-variable-pitch nil
   solarized-scale-org-headlines nil
   solarized-height-minus-1 1
   solarized-height-plus-1 1
   solarized-height-plus-2 1
   solarized-height-plus-3 1
   solarized-height-plus-4 1
   ))
#+end_src

This keeps all headings for =org-mode= at the same font size, which guarantees
that your =fill-column= marker and tags are properly aligned across headings of
different levels. It also makes navigating =org= files more pleasant in general,
as the buffer is truly monospaced again and your cursor doesn't take any detours.

I suspect there are similar heading font size settings for other themes, but I
haven't investigated that.

** Cycle themes
With the setting above you also get the light theme, which is useful for bright
days, presentations, and presentations on bright days. =SPC T n= cycles through
the two themes.

*Note*: if you use [[https://github.com/sabof/org-bullets][org-bullets]], then you will notice that the hidden *s become
 visible upon switching the theme, because they still have the background color
 of the opposite theme. This can be remedied by saving the file and reloading it
 via =SPC b R=.