Open Sans is new default font, prettifying symbols.

Commit
30b6047acdd4737822fc8ee870d67020c1b465ab
Author
Blendoit <blendoit@gmail.com>
Author date
Committer
Blendoit <blendoit@gmail.com>
Committer date
Changed files
custom.el
index 0fdac6aa..1671f2ba 100644..100644
@@ -15,7 +15,7 @@
15 15 '(company-quickhelp-color-foreground "#DCDCCC")
16 16 '(custom-enabled-themes nil)
17 17 '(custom-safe-themes
18 Removed: '("8fb0949f4229860cf19034b924eb99c664327c9250fb92a2633bdf4b4abaf060" "c3a2a37e84e474c73c2b468553f9b5b73341419f72bbc1f4a4bcc1230ef86c85" "6495716176be0ced4142593b94a410135e0b373b686a869637824260d2f1ca11" "4467b1c8d7cc78fe98345c9c63eb62cf37844dc6868630add365494bde455715" "faeef63cb31f796b4bdf22f38e614934ab34d7deacaeb89b3e9cccf70aac5a85" "370fb305168fea1614535dc9ca30f496918eaca754b6c8969dd77fa872bec695" "e9f0c0c3397d07eb1c6c3551d67fd151e24bc6d72ec678841623ed572677c97a" "5c32236ef318adafe4102f627f330fa8f448046dfd838eef5cc09c7f682cf71f" "e343fecfb8d681186d594002c9b44ce48c2061599d7e4ec635cf1ca2a277a47a" "302dc61dc55600c7424f945dce9e74fba7df19f4a7bfb72aefd93193fa82ede4" "58f1f85248ba913387d1e7ed02a867161b315cfb5acff0c234e013ffd2577d22" "a256abf590bbc3257cc11d91a312e9fe8487dc1b95a5b7b732dd2f96a7fe5a45" "30368d6195cae9298304e6ac0534b90c85b1655965f1206c5c624270f0f46002" "311aa5df3223b5b4a7c638aad3befb4de9c7f46360d52acd1fa2cd2232b1dcbd" default))
18 Added: '("469032293efae7c0c86a95c39cab8b0ff8883cf4af3f2c292313cf6a71195b40" "8fb0949f4229860cf19034b924eb99c664327c9250fb92a2633bdf4b4abaf060" "c3a2a37e84e474c73c2b468553f9b5b73341419f72bbc1f4a4bcc1230ef86c85" "6495716176be0ced4142593b94a410135e0b373b686a869637824260d2f1ca11" "4467b1c8d7cc78fe98345c9c63eb62cf37844dc6868630add365494bde455715" "faeef63cb31f796b4bdf22f38e614934ab34d7deacaeb89b3e9cccf70aac5a85" "370fb305168fea1614535dc9ca30f496918eaca754b6c8969dd77fa872bec695" "e9f0c0c3397d07eb1c6c3551d67fd151e24bc6d72ec678841623ed572677c97a" "5c32236ef318adafe4102f627f330fa8f448046dfd838eef5cc09c7f682cf71f" "e343fecfb8d681186d594002c9b44ce48c2061599d7e4ec635cf1ca2a277a47a" "302dc61dc55600c7424f945dce9e74fba7df19f4a7bfb72aefd93193fa82ede4" "58f1f85248ba913387d1e7ed02a867161b315cfb5acff0c234e013ffd2577d22" "a256abf590bbc3257cc11d91a312e9fe8487dc1b95a5b7b732dd2f96a7fe5a45" "30368d6195cae9298304e6ac0534b90c85b1655965f1206c5c624270f0f46002" "311aa5df3223b5b4a7c638aad3befb4de9c7f46360d52acd1fa2cd2232b1dcbd" default))
19 19 '(fci-rule-color "#383838")
20 20 '(fringe-mode 0 nil (fringe))
21 21 '(indicate-empty-lines t)
smart-documents.org
index eb7097a8..4c7bcc45 100644..100644
@@ -4,7 +4,7 @@
4 4 #+AUTHOR: Marius Peter
5 5 #+DATE: <2020-07-23 Thu>
6 6 #+EMAIL: blendoit@gmail.com
7 Removed: #+STARTUP: showall customtime
7 Added: #+STARTUP: showall
8 8 #+SETUPFILE: ~/.emacs.d/templates/documents/general.org
9 9 #+INCLUDE: ~/.emacs.d/templates/documents/general.org_title
10 10
@@ -77,8 +77,6 @@
77 77 (message "Successfully captured user details."))
78 78 #+END_SRC
79 79
80 Removed:
81 Removed:
82 80 #+NAME: user-details
83 81 #+BEGIN_SRC emacs-lisp
84 82 (defun my/tokenize-user-details ()
@@ -88,7 +86,6 @@
88 86
89 87 (unless (file-exists-p (concat user-emacs-directory
90 88 "meta/user-details"))
91 Removed:
92 89 (setq user-details '(user-full-name
93 90 user-mail-address))
94 91 (append-to-file "Foobar\n" nil "~/.emacs.d/meta/foobar"))
@@ -172,25 +169,29 @@
172 169 ; (profiler-start)
173 170 #+END_SRC
174 171
175 Removed: ** TODO Emacs client
172 Added: ** Jumping to this file
176 173
177 Removed: Makes opening emacs faster for following instances.
174 Added: We begin by defining a function to open this very file.
178 175
179 Removed: #+NAME: emacs-client
176 Added: #+NAME: shortcut-config
180 177 #+BEGIN_SRC emacs-lisp
181 Removed: ; (setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))
178 Added: (defun my/find-literate-config ()
179 Added: "Jump to this very file."
180 Added: (interactive)
181 Added: (find-file (concat my/literate-config ".org")))
182 182 #+END_SRC
183 183
184 Removed: ** Jumping to this file
184 Added: ** Speeding up the next startup
185 185
186 Removed: We begin by defining a function to open this very file.
187 Removed:
188 Removed: #+NAME: shortcut-config
189 186 #+BEGIN_SRC emacs-lisp
190 Removed: (defun my/find-literate-config ()
191 Removed: "Jump to this very file."
192 Removed: (interactive)
193 Removed: (find-file (concat my/literate-config ".org")))
187 Added: (defun byte-compile-literate-config ()
188 Added: "Byte compile our literate configuration file."
189 Added: (delete-file (concat my/literate-config ".elc"))
190 Added: (delete-file (concat my/literate-config ".el"))
191 Added: (org-babel-tangle-file (concat my/literate-config ".org"))
192 Added: (byte-compile-file (concat my/literate-config ".el")))
193 Added:
194 Added: (add-hook 'kill-emacs-hook 'byte-compile-literate-config)
194 195 #+END_SRC
195 196
196 197 ** Meta-files
@@ -262,16 +263,20 @@
262 263
263 264 ** Initial and default frames
264 265
265 Removed: We set the dimensions of the inital and default frames.
266 Added: We set the dimensions of the initial frame:
266 267
267 268 #+BEGIN_SRC emacs-lisp
268 Removed: (add-to-list 'default-frame-alist '(width . 100))
269 Removed: (add-to-list 'default-frame-alist '(height . 50))
270 Removed:
271 269 (add-to-list 'initial-frame-alist '(width . 100))
272 270 (add-to-list 'initial-frame-alist '(height . 50))
273 271 #+END_SRC
274 272
273 Added: We also set the dimensions of subsequent frames:
274 Added:
275 Added: #+BEGIN_SRC emacs-lisp
276 Added: (add-to-list 'default-frame-alist '(width . 100))
277 Added: (add-to-list 'default-frame-alist '(height . 50))
278 Added: #+END_SRC
279 Added:
275 280 *** GNU/Linux
276 281
277 282 These settings affect the first and subsequent frames spawned by Emacs in
@@ -411,14 +416,6 @@
411 416 (global-set-key (kbd "C-+") 'text-scale-increase)
412 417 #+END_SRC
413 418
414 Removed: *** Select all the text
415 Removed:
416 Removed: CUA, CUA, CUA, always & forever.
417 Removed:
418 Removed: #+BEGIN_SRC emacs-lisp
419 Removed: (global-set-key (kbd "C-a") 'mark-whole-buffer)
420 Removed: #+END_SRC
421 Removed:
422 419 ** Customizing the editor
423 420
424 421 *** Customize a variable
@@ -676,33 +673,17 @@
676 673 (setq org-agenda-insert-diary-strategy 'date-tree-last)
677 674 #+END_SRC
678 675
679 Removed: What follows are the document class structures that can be exported in LaTeX.
676 Added: What follows is an additional document class structures that can be exported in
677 Added: LaTeX.
680 678
681 679 #+BEGIN_SRC emacs-lisp
682 Removed: (setq org-latex-classes
683 Removed: '(("article" "\\documentclass[11pt]{article}"
684 Removed: ("\\section{%s}" . "\\section*{%s}")
685 Removed: ("\\subsection{%s}" . "\\subsection*{%s}")
686 Removed: ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
687 Removed: ("\\paragraph{%s}" . "\\paragraph*{%s}")
688 Removed: ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
689 Removed: ("report" "\\documentclass[11pt]{report}"
690 Removed: ("\\part{%s}" . "\\part*{%s}")
691 Removed: ("\\chapter{%s}" . "\\chapter*{%s}")
692 Removed: ("\\section{%s}" . "\\section*{%s}")
693 Removed: ("\\subsection{%s}" . "\\subsection*{%s}")
694 Removed: ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
695 Removed: ("book" "\\documentclass[12pt]{book}"
696 Removed: ("\\part{%s}" . "\\part*{%s}")
697 Removed: ("\\chapter{%s}" . "\\chapter*{%s}")
698 Removed: ("\\section{%s}" . "\\section*{%s}")
699 Removed: ("\\subsection{%s}" . "\\subsection*{%s}")
700 Removed: ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
701 Removed: ("book-blendoit" "\\documentclass[12pt]{book}"
702 Removed: ("\\chapter{%s}" . "\\chapter*{%s}")
703 Removed: ("\\section{%s}" . "\\section*{%s}")
704 Removed: ("\\subsection*{%s}" . "\\subsection*{%s}")
705 Removed: ("\\subsubsection*{%s}" . "\\subsubsection*{%s}"))))
680 Added: ;; (add-to-list 'org-latex-classes
681 Added: ;; '("book-blendoit"
682 Added: ;; "\\documentclass[12pt]{book}"
683 Added: ;; ("\\chapter{%s}" . "\\chapter*{%s}")
684 Added: ;; ("\\section{%s}" . "\\section*{%s}")
685 Added: ;; ("\\subsection*{%s}" . "\\subsection*{%s}")
686 Added: ;; ("\\subsubsection*{%s}" . "\\subsubsection*{%s}")))
706 687 #+END_SRC
707 688
708 689 By default, body text can immediately follow the table of contents. It is
@@ -788,8 +769,8 @@
788 769
789 770 #+NAME: company
790 771 #+BEGIN_SRC emacs-lisp
791 Removed: (use-package hungry-delete
792 Removed: :init (hungry-delete-mode))
772 Added: (use-package hungry-delete)
773 Added: (global-hungry-delete-mode)
793 774 #+END_SRC
794 775
795 776 ** Utilities
@@ -1071,6 +1052,32 @@
1071 1052 (add-hook 'org-mode-hook 'turn-on-auto-fill)
1072 1053 #+END_SRC
1073 1054
1055 Added: ** Text
1056 Added:
1057 Added: *** Beautiful symbols
1058 Added:
1059 Added: We want the Emacs Lisp keyword =lambda= to be rendered as \lambda within the
1060 Added: editor. This is mostly for a subjective ``cool'' factor.
1061 Added:
1062 Added: #+BEGIN_SRC emacs-lisp
1063 Added: (global-prettify-symbols-mode 1)
1064 Added: #+END_SRC
1065 Added:
1066 Added: *** Org mode sugar
1067 Added:
1068 Added: Let's pimp out the appearance of our text in Org mode. First, we prettify
1069 Added: checkbox lists.
1070 Added:
1071 Added: #+BEGIN_SRC emacs-lisp
1072 Added: (add-hook 'org-mode-hook
1073 Added: (lambda ()
1074 Added: "Beautify Org checkbox symbols."
1075 Added: (push '("[ ]" . "☐") prettify-symbols-alist)
1076 Added: (push '("[X]" . "☑" ) prettify-symbols-alist)
1077 Added: (push '("[-]" . "⬛" ) prettify-symbols-alist)
1078 Added: (prettify-symbols-mode)))
1079 Added: #+END_SRC
1080 Added:
1074 1081 ** Minibuffer
1075 1082
1076 1083 We replace the longer ~yes-or-no-p~ questions with more convenient ~y-or-n-p~.
@@ -1121,7 +1128,7 @@
1121 1128 | \color{Tomato} Tomato | timestamp `TODO' | /same/ |
1122 1129 | \color{Green} Green | positive | /same/ |
1123 1130 | \color{ForestGreen} ForestGreen | timestamp `DONE' | /same/ |
1124 Removed: | \color{Blue} Blue | interactable content; links | /same/ |
1131 Added: | \color{Blue} Blue | interactive content; links | /same/ |
1125 1132 | \color{SteelBlue} SteelBlue | anything Org mode; anchor color | /same/ |
1126 1133 | \color{DeepSkyBlue} DeepSkyBlue | ~highlight~ | /same/ |
1127 1134 | \color{DodgerBlue} DodgerBlue | ~isearch~ | /same/ |
@@ -1146,7 +1153,7 @@
1146 1153 (setq-default cursor-type 'bar)
1147 1154 #+END_SRC
1148 1155
1149 Removed: *** Fonts
1156 Added: *** TODO Fonts
1150 1157
1151 1158 - Hack :: ~default~ and ~fixed-pitch~
1152 1159 - Legible, modern monospace font
@@ -1154,6 +1161,7 @@
1154 1161 - Liberation Sans :: ~variable-pitch~
1155 1162 - Libre alternative to Arial
1156 1163 - Unoffensive
1164 Added: - Open Sans :: ~variable-pitch~
1157 1165 - Hermit :: ~org-block~, anything Org/meta in general
1158 1166 - Slightly wider than Hack
1159 1167 - More opinionated shapes
@@ -1181,21 +1189,8 @@
1181 1189 * Late setup
1182 1190
1183 1191 At this point, our editor is almost ready to run. Phew! All that's left to do
1184 Removed: is to prepare for the next startup, interrupt our profiling activities, and
1185 Removed: smartly store the result of our profiling.
1186 Removed:
1187 Removed: ** Speeding up the next startup
1188 Removed:
1189 Removed: #+BEGIN_SRC emacs-lisp
1190 Removed: (defun byte-compile-literate-config ()
1191 Removed: "Byte compile our literate configuration file."
1192 Removed: (delete-file (concat my/literate-config ".elc"))
1193 Removed: (delete-file (concat my/literate-config ".el"))
1194 Removed: (org-babel-tangle-file (concat my/literate-config ".org"))
1195 Removed: (byte-compile-file (concat my/literate-config ".el")))
1196 Removed:
1197 Removed: (add-hook 'kill-emacs-hook 'byte-compile-literate-config)
1198 Removed: #+END_SRC
1192 Added: is to interrupt our profiling activities, and smartly store the result of our
1193 Added: profiling.
1199 1194
1200 1195 ** Profiling --- stop
1201 1196
smart-documents.pdf
index 2846f9c7..a7741820 100644..100644

Binary files differ

themes/blendoit-light-theme.el
index 3ba01543..a502d9ae 100644..100644
@@ -5,7 +5,7 @@
5 5 'blendoit-light
6 6 '(cursor ((t (:background "red"))))
7 7 '(fixed-pitch ((t (:family "Hack"))))
8 Removed: '(variable-pitch ((t (:family "Liberation Sans"))))
8 Added: '(variable-pitch ((t (:family "Open Sans"))))
9 9 '(escape-glyph ((((background dark)) (:foreground "cyan")) (((type pc)) (:foreground "magenta")) (t (:foreground "brown"))))
10 10 '(homoglyph ((((background dark)) (:foreground "cyan")) (((type pc)) (:foreground "magenta")) (t (:foreground "brown"))))
11 11 '(minibuffer-prompt ((t (:inherit org-meta-line))))
@@ -60,7 +60,7 @@
60 60 '(org-checkbox-statistics-todo ((t (:inherit org-checkbox :foreground "tomato"))))
61 61 '(org-checkbox-statistics-done ((t (:inherit org-checkbox :foreground "ForestGreen"))))
62 62 '(org-verbatim ((t (:inherit fixed-pitch :height 0.9 :foreground "DodgerBlue1" :foundry "Hack"))))
63 Removed: '(font-lock-doc-face ((t (:inherit font-lock-string-face :Family "Liberation Sans"))))
63 Added: '(font-lock-doc-face ((t (:inherit font-lock-string-face :Family "Open Sans"))))
64 64 '(org-document-info ((t (:weight bold))))
65 65 '(org-table ((t (:height 0.8 :family "Hack"))))
66 66 '(org-block ((t (:height 0.8 :family "Hermit"))))