![]() At the moment I like Source Sans Pro ET Book.Īs a counterpart to variable-pitch, you need to configure the fixed-pitch face for the text that needs to be shown in a monospaced font. You can do this interactively through the customize interface by typing M-x customize-face variable-pitch. ![]() You can change the font used by configuring the variable-pitch face. On my Mac the default variable-pitch font is Helvetica. ![]() You can try it right now: type M-x variable-pitch-mode and your current buffer will be shown in a proportional font (you can disable it by running variable-pitch-mode again). My next realization was that Emacs already includes support for displaying proportional fonts with the variable-pitch-mode command. Install Source Sans Pro." )))) ( base-font-color ( face-foreground 'default nil 'default )) ( headline ` ( :inherit default :weight bold :foreground, base-font-color ))) ( custom-theme-set-faces 'user ` ( org-level-8 (( t ( headline variable-tuple )))) ` ( org-level-7 (( t ( headline variable-tuple )))) ` ( org-level-6 (( t ( headline variable-tuple )))) ` ( org-level-5 (( t ( headline variable-tuple )))) ` ( org-level-4 (( t ( headline variable-tuple :height 1.1 )))) ` ( org-level-3 (( t ( headline variable-tuple :height 1.25 )))) ` ( org-level-2 (( t ( headline variable-tuple :height 1.5 )))) ` ( org-level-1 (( t ( headline variable-tuple :height 1.75 )))) ` ( org-document-title (( t ( headline variable-tuple :height 2.0 :underline nil )))))) Step 2: Setting up variable-pitch and fixed-pitch faces ( let* (( variable-tuple ( cond (( x-list-fonts "ETBembo" ) ' ( :font "ETBembo" )) (( x-list-fonts "Source Sans Pro" ) ' ( :font "Source Sans Pro" )) (( x-list-fonts "Lucida Grande" ) ' ( :font "Lucida Grande" )) (( x-list-fonts "Verdana" ) ' ( :font "Verdana" )) (( x-family-fonts "Sans Serif" ) ' ( :family "Sans Serif" )) ( nil ( warn "Cannot find a Sans Serif Font. I took these settings originally from Howard Abrams' excellent Org as a Word Processor article, although I have tweaked them a bit.įirst, we ask org-mode to hide the emphasis markup (e.g. My first step was to make org-mode much more readable by using different fonts for headings, hiding some of the markup, and improving list bullets. To wet your appetite, here is what a fragment of my file looked like with the Gruvbox theme:Īnd this is how it looks now with the light Spacemacs theme: Step 1: Configure faces for Org headlines and lists In the end, you can have an Emacs setup for editing org documents which looks very nice, with proportional fonts for text and monospaced fonts for code blocks, examples and other elements. I would like to share with you what I learned and my current Emacs configuration. But as I write more and more prose in Emacs these days, I started thinking it might be nice to edit text in more visually-appealing fonts, including using a proportional font, which makes regular prose much more readable. I use the Gruvbox theme (in the meantime I have switched to the light Spacemacs theme) and org-mode has very decent syntax highlighting. I am in general very happy with my Emacs' appearance. Recently I started thinking about how I could make my editing environment more visually appealing. I love its flexibility and power, and it is the first literate programming tool which “feels right”, and I have been able to stick with it for a longer period of time than in my previous attempts. Over the last few months, I have used org-mode more and more for writing and programming in Emacs.
0 Comments
Leave a Reply. |