[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-operandi-theme a99bec3 20/54: Improve README sect
From: |
Stefan Monnier |
Subject: |
[elpa] externals/modus-operandi-theme a99bec3 20/54: Improve README section on font family settings |
Date: |
Thu, 4 Jun 2020 08:20:13 -0400 (EDT) |
branch: externals/modus-operandi-theme
commit a99bec324b712d9444fa1c2abd4ef083e6cba64d
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Improve README section on font family settings
---
README.org | 36 ++++++++++++++++++++++++------------
1 file changed, 24 insertions(+), 12 deletions(-)
diff --git a/README.org b/README.org
index 0b81b69..55bdfe1 100644
--- a/README.org
+++ b/README.org
@@ -511,31 +511,43 @@ package which offers live colour previews. This is how I
configure it:
(setq rainbow-x-colors nil))
#+end_src
-** Optional minimum extra configurations for mixed fonts
+** Font configurations for Org (and others)
:PROPERTIES:
:CUSTOM_ID: h:ea30ff0e-3bb6-4801-baf1-d49169d94cd5
:END:
The themes are designed to cope well with mixed font settings.
-Currently this applies to Org mode (courtesy of
[[https://gitlab.com/protesilaos/modus-themes/-/issues/40][Ben in issue 40]]).
+Currently this applies to Org mode (courtesy of
[[https://gitlab.com/protesilaos/modus-themes/-/issues/40][Ben in issue 40]]),
though
+it may be extended to other major modes as well (e.g. markdown).
-In practice it means that some parts of an Org buffer will use a
-monospaced font even when the user opts for a proportionately-spaced
-typeface as their default (such as by enabling =(variable-pitch-mode)=).
-This is to ensure that code blocks and other relevant elements use the
+In practice it means that some parts of a buffer will use a monospaced
+font even when the user opts for a proportionately-spaced typeface as
+their default (such as by enabling =variable-pitch-mode=). This is to
+ensure that code blocks, tables, and other relevant elements use the
appropriate type settings and are positioned correctly.
-To specify the font families and their respective height, you could do
-something like:
+*To make everything use your desired font families*, you need to configure
+the =variable-pitch= (proportional spacing) and =fixed-pitch= (monospaced)
+faces respectively. Otherwise you may get unintended combinations (such
+as those experienced by Mark in
[[https://gitlab.com/protesilaos/modus-themes/-/issues/42][issue 42]]).
+
+Put something like this in your initialisation file:
#+begin_src emacs-lisp
-(set-face-attribute 'variable-pitch nil :family "Source Sans Pro" :height 110)
+(set-face-attribute 'variable-pitch nil :family "DejaVu Sans" :height 110)
(set-face-attribute 'fixed-pitch nil :family "Source Code Pro" :height 110)
#+end_src
-In this example, you are defining the attributes of the =variable-pitch=
-face (proportional) and of =fixed-pitch= (monospace), which are then
-inherited by other faces at the theme level.
+You can also set your standard font the same way. For example:
+
+#+begin_src emacs-lisp
+(set-face-attribute 'default nil :family "Fira Code" :height 120)
+#+end_src
+
+The value of the =:height= attribute essentially is the point size × 100.
+So if you want to use Fira Code at point size =12=, you set the height to
+=120=. Values do not need to be rounded to multiples of ten, so the likes
+of =125= are perfectly valid.
If any Org power user is reading this section, I encourage you to
recommend some other /minimal/ tweaks and customisations that could
- [elpa] externals/modus-operandi-theme feaef70 08/54: Refine ORG-MODE faces for mixed font workflows, (continued)
- [elpa] externals/modus-operandi-theme feaef70 08/54: Refine ORG-MODE faces for mixed font workflows, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme c72b01c 11/54: Add support for INDIUM, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme 58a9924 12/54: Add support for VDIFF, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme 91ce02b 09/54: Expand README on face customisation, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme 4b3f6a3 27/54: Add tentative support for CIRCE, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme 148f73a 46/54: Add support for missing `helm-eshell-*' faces, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme 7c67f73 50/54: Add support for EL-SEARCH, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme f76c36a 13/54: Major review of colours for tabs. Tweak faces., Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme a937f90 14/54: Modus Vivendi: tweak colour for header lines, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme 78a2baf 18/54: Clarify that Org #+TITLE does not scale in v0.8.1, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme a99bec3 20/54: Improve README section on font family settings,
Stefan Monnier <=
- [elpa] externals/modus-operandi-theme 985675e 21/54: Allow byte compile with `eval-when-compile', Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme c05fbab 22/54: Do not `autoload' defcustom, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme ccc6d66 24/54: Minor refinements to some RCIRC faces, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme 22444f9 23/54: Minor refinements to some ERC faces, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme a3d064d 26/54: Several refinements to the README, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme 9954f47 28/54: Major Review of fly{check, make, spell} for GUI/TUI, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme e14182f 29/54: Tweak `minibuffer-prompt' colour for consistency, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme a9479f3 31/54: Add support for MINIMAP, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme 0b8a919 32/54: Add support for HYPERLIST, Stefan Monnier, 2020/06/04
- [elpa] externals/modus-operandi-theme dbe1c96 34/54: Minor tweaks for GNUS summary selected, ticked, Stefan Monnier, 2020/06/04