summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlendoit <blendoit@gmail.com>2020-10-29 23:57:56 -0700
committerBlendoit <blendoit@gmail.com>2020-10-29 23:57:56 -0700
commitffec5f58046d54357fbfa034b0657ac6cede45c4 (patch)
treef741ac287895a038220d0e3a7938d1c50f4c4306
parent95e6d6c069f2cb251f656fc32a96eb1a9a076690 (diff)
Org mode section clean up.
-rw-r--r--smart-documents.org58
-rw-r--r--smart-documents.pdfbin175098 -> 194310 bytes
-rw-r--r--themes/blendoit-light-theme.el8
3 files changed, 55 insertions, 11 deletions
diff --git a/smart-documents.org b/smart-documents.org
index 109c9b2..12e756d 100644
--- a/smart-documents.org
+++ b/smart-documents.org
@@ -546,6 +546,20 @@ What follows are customizations designed to make Org mode behave more like
Microsoft Word. The end goal is, once again, to draw as many new users to Emacs
as possible!
+Check out how much information Org mode keeps concerning the most recent
+header:
+
+#+NAME: org-meta-info
+#+BEGIN_SRC emacs-lisp :tangle no :results pp :exports both :cache yes
+(save-excursion
+ (org-previous-visible-heading 1)
+ (org-element-at-point))
+#+END_SRC
+
+#+RESULTS[cf28d310a45fa4e4dcd49882889cd36a2ae3820d]: org-meta-info
+: (headline
+: (:raw-value "~org-mode~" :begin 15070 :end 22082 :pre-blank 1 :contents-begin 15085 :contents-end 22081 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 15070 :title "~org-mode~"))
+
*** Basic customization
Org base directory is in user home on GNU/Linux, or in =AppData= in MS Windows.
@@ -646,6 +660,8 @@ Options and why we need them:
-interaction=nonstopmode -outdir=%o %f"))
#+END_SRC
+**** Exporting timestamps
+
We customize the format for org time stamps to make them appear monospaced in
our exported LaTeX documents. This makes them visually distinguishable from
body text.
@@ -657,6 +673,8 @@ body text.
"\\texttt{%s}")
#+END_SRC
+**** LaTeX packages
+
The following packages are loaded for every time we export to LaTeX.
#+BEGIN_SRC emacs-lisp
@@ -671,18 +689,23 @@ The following packages are loaded for every time we export to LaTeX.
("pdflatex"))))
#+END_SRC
+**** Colored source blocks in PDF export
+
Little bonus for GNU/Linux users: syntax highlighting for source code blocks in
LaTeX exports.
#+BEGIN_SRC emacs-lisp
- (when (string-equal system-type "gnu/linux")
- (add-to-list 'org-latex-packages-alist '("AUTO" "minted" t
- ("pdflatex" "lualatex")))
- (setq org-latex-listings 'minted)
- (setq org-latex-minted-options
- '(("style" "friendly") ())))
+(when (string-equal system-type "gnu/linux")
+ (add-to-list 'org-latex-packages-alist '("AUTO" "minted" t
+ ("pdflatex" "lualatex")))
+ (setq org-latex-listings 'minted)
+ (setq org-latex-minted-options '(("style" "friendly")
+ ("breaklines" "true")
+ ("breakanywhere" "true"))))
#+END_SRC
+**** Cleaning directory after PDF compilation
+
Now, we set the files to be deleted when a LaTeX \rightarrow PDF compilation
occurs. We only care about two files, in the end: the Org mode file for
edition, and the PDF for distribution.
@@ -695,6 +718,8 @@ edition, and the PDF for distribution.
"tex" "lot" "lof"))
#+END_SRC
+**** Chronological diary entries
+
By default, Org agenda inserts diary entries as the first under the selected
date. It is preferable to insert entries in the order that they were recorded,
i.e. chronologically.
@@ -716,6 +741,8 @@ LaTeX.
;; ("\\subsubsection*{%s}" . "\\subsubsection*{%s}")))
#+END_SRC
+**** Table of contents
+
By default, body text can immediately follow the table of contents. It is
however cleaner to separate table of contents with the rest of the work.
@@ -963,6 +990,18 @@ Get inspiration from ~ibuffer-sidebar~ and create a better sidebar.
;; (load-file)
#+END_SRC
+*** Icons
+
+Icon fonts
+
+#+BEGIN_SRC emacs-lisp
+(use-package all-the-icons)
+#+END_SRC
+
+#+BEGIN_SRC emacs-lisp
+(use-package mode-icons)
+#+END_SRC
+
*** Better parentheses
#+BEGIN_SRC emacs-lisp
@@ -1010,7 +1049,8 @@ This reimplements the most common Org mode export: Org \rightarrow LaTeX
* Editing preferences
-These customizations enhance editor usability.
+These customizations enhance editor usability. They also encompass cosmetic
+changes not brought about a specific package.
** Editor
@@ -1202,6 +1242,10 @@ cursor is a more MS Word-like bar.
- Slightly wider than Hack
- More opinionated shapes
- Very legible parentheses, very useful for Emacs Lisp!
+- Jost[fn::https://indestructibletype.com/Jost.html] :: ~org-document-title~
+ and ~org-level-1~
+ - Ultra-modern
+ - Tasteful amount of geometric inspiration
**** Previously used /virgin fonts/
diff --git a/smart-documents.pdf b/smart-documents.pdf
index 3e59ec8..d57bb4e 100644
--- a/smart-documents.pdf
+++ b/smart-documents.pdf
Binary files differ
diff --git a/themes/blendoit-light-theme.el b/themes/blendoit-light-theme.el
index 9ff287c..b70a94e 100644
--- a/themes/blendoit-light-theme.el
+++ b/themes/blendoit-light-theme.el
@@ -1,5 +1,5 @@
(deftheme blendoit-light
- "Created 2020-10-10.")
+ "Created 2020-10-25.")
(custom-theme-set-faces
'blendoit-light
@@ -53,19 +53,19 @@
'(ivy-minibuffer-match-highlight ((t (:inherit highlight))))
'(org-formula ((t (:inherit org-table))))
'(org-meta-line ((t (:foreground "SteelBlue" :family "Hermit"))))
- '(org-document-title ((t (:weight bold :height 2.0))))
+ '(org-document-title ((t (:weight bold :height 2.0 :family "Jost*"))))
'(org-footnote ((t (:inherit link))))
'(org-document-info-keyword ((t (:inherit org-meta-line))))
'(org-code ((t (:background "light grey" :foreground "black" :height 0.9 :family "Hack"))))
'(org-checkbox-statistics-todo ((t (:inherit org-checkbox :foreground "tomato"))))
'(org-checkbox-statistics-done ((t (:inherit org-checkbox :foreground "ForestGreen"))))
- '(org-verbatim ((t (:inherit fixed-pitch :height 0.9 :foreground "DodgerBlue1" :foundry "Hack"))))
+ '(org-verbatim ((t (:foreground "DodgerBlue1" :height 0.9 :foundry "Hack"))))
'(font-lock-doc-face ((t (:inherit font-lock-string-face :Family "Public Sans"))))
'(org-document-info ((t (:weight bold))))
'(org-table ((t (:height 0.8 :family "Hack"))))
'(org-block ((t (:height 0.8 :family "Hermit"))))
'(org-special-keyword ((t (:inherit org-meta-line))))
- '(org-level-1 ((t (:foreground "black" :weight bold :height 1.6))))
+ '(org-level-1 ((t (:foreground "black" :weight bold :height 1.6 :family "Jost*"))))
'(org-level-2 ((t (:foreground "gray30" :weight bold :height 1.4))))
'(org-level-3 ((t (:foreground "gray45" :weight bold :height 1.2))))
'(org-level-4 ((t (:foreground "gray60" :weight bold :height 1.1))))
Copyright 2019--2024 Marius PETER