From f4d9f258fd7163624697e0fd1c5d83e3ddc038c7 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 13 Jun 2021 09:33:48 -0700 Subject: Additional cleanup :trollface: --- smart-documents.org | 25 +++++++++++++++---------- smart-documents.pdf | Bin 447540 -> 453134 bytes 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/smart-documents.org b/smart-documents.org index 2d26f3e..f316e61 100644 --- a/smart-documents.org +++ b/smart-documents.org @@ -1280,22 +1280,19 @@ in-buffer behavior can be arbitrarily assigned. * One-click workflows In this section, we'll implement useful one-click workflows. It comes -later keybinding definitions for two reasons: +later than the keybinding definitions for two reasons: -1. To a new user, keybindings are more important than the precise +1. To a new user, keybindings are more relevant than the implementation of the bound function---it is more important to know how to drive a car than how a car works. 2. If the following subsections share the same name as the keybinding - subsection (Section [[Keyboard shortcuts]]), the links will resolve to - the earliest heading in the document, i.e. the keybinding - subsection and not the subsection describing the `one-click - workflow'. + subsection (Section [[Keyboard shortcuts]]), the links to that name + will resolve to the earliest heading in the document, i.e. the + keybinding subsection and not the subsection describing the + `one-click workflow'. ** TODO Export to PDF -This reimplements the most common Org mode export: Org \rightarrow -LaTeX \rightarrow PDF. The binding is defined in Section [[Export to -PDF]]. This series of ~quick-export~ functions have one objective: harmonize the export of Emacs buffers to PDF. Org mode does this by design; we describe additional exports for other modes, most notably Nroff mode @@ -1311,7 +1308,11 @@ PDF. The binding is defined in Section [[Export to PDF]]. "Org mode async export to PDF and open. This basically reimplements `C-c C-e C-a l o'." (org-open-file (org-latex-export-to-pdf))) +#+END_SRC + +*** From a Ledger report +#+BEGIN_SRC emacs-lisp :tangle yes (defun sd-quick-export--ledger-report () "Quick export for `ledger-mode' report buffers." (let ((old-buffer (current-buffer))) @@ -1673,6 +1674,10 @@ unusable. Thus, we /describe/ two themes that were developed (load-theme 'sd-compagnon) #+END_SRC +#+BEGIN_SRC emacs-lisp :tangle no + (load-theme 'molokai) +#+END_SRC + #+BEGIN_SRC emacs-lisp :tangle no (load-theme 'sd-light) #+END_SRC @@ -1871,7 +1876,7 @@ the result of our profiling. ** Profiling---report #+BEGIN_SRC emacs-lisp :tangle no - (profiler-report) + (profiler-report) #+END_SRC * Conclusion diff --git a/smart-documents.pdf b/smart-documents.pdf index c9f639e..8309c9f 100644 Binary files a/smart-documents.pdf and b/smart-documents.pdf differ -- cgit v1.2.3