[Emacs Lisp] Personal ~/.emacs.d/ configuration folder.
Murder your darlings.
smart-documents.org
@@ -1785,69 +1785,3 @@
1785
1785
In this configuration file, we described a series of customization
1786
1786
steps taken to make Emacs more palatable to modern word processors
1787
1787
users.
1788
Removed:
1789
Removed:
We will now go through the appendices in the following order:
1790
Removed:
1791
Removed:
1. Ideas implemented, then retired;
1792
Removed:
2. Risky ideas that might displease Emacs when it reads our literate
1793
Removed:
configuration. If these risky ideas are included in the main body
1794
Removed:
of the paper, it becomes difficult to identify which one is causing
1795
Removed:
trouble.
1796
Removed:
1797
Removed:
#+LATEX: \appendix
1798
Removed:
* Old introduction
1799
Removed:
1800
Removed:
GNU Emacs is most often used as a text editor. The utmost level of
1801
Removed:
customization is afforded by the ability to rewrite /any/ part of the
1802
Removed:
source code and observe the editor's modified behavior in real
1803
Removed:
time. Since its inception in 1984, GNU Emacs has grown to be much more
1804
Removed:
than a full-featured, high-productivity text editor---new /modes/ have
1805
Removed:
been written to interact with hundreds of file formats, including
1806
Removed:
=.txt=, =.pdf=, =.jpg=, =.csv=, and =.zip= just to name a few. This
1807
Removed:
paper itself was written in /Org mode/, a collection of functions
1808
Removed:
enabling the harmonious mixing of code, comments and content in view
1809
Removed:
of publication: this is the endgame of /literate programming/, and the
1810
Removed:
basis of my vision for /Smart Documents/.
1811
Removed:
1812
Removed:
* Unpacking our literate configuration
1813
Removed:
:PROPERTIES:
1814
Removed:
:sd-unpack-path: sd.el
1815
Removed:
:END:
1816
Removed:
1817
Removed:
The following code blocks are normally evaluated once---upon starting
1818
Removed:
Emacs for the first time.
1819
Removed:
1820
Removed:
#+BEGIN_SRC emacs-lisp :tangle no
1821
Removed:
(defvar sd-packed-p t
1822
Removed:
"Boolean to track literate configuration packed/unpacked status.")
1823
Removed:
1824
Removed:
(defvar sd-unpack-sections (org-property-values "sd-unpack-path")
1825
Removed:
"List of target sections in `my/literate-config' to be unpacked.")
1826
Removed:
1827
Removed:
(defun sd-unpack-sections ()
1828
Removed:
"Unpack literate configuration into `emacs-user-directory'."
1829
Removed:
(interactive)
1830
Removed:
(mapcar 'sd-unpack sd-unpack-sections)
1831
Removed:
)
1832
Removed:
1833
Removed:
(defun sd-unpack-section (&optional section)
1834
Removed:
"Unpack SECTION into `user-emacs-directory'.
1835
Removed:
If nil, unpack section under point.
1836
Removed:
Make go through list of headings and unpack first matching SECTION."
1837
Removed:
(interactive)
1838
Removed:
(if (not section)
1839
Removed:
(insert
1840
Removed:
(concat
1841
Removed:
"\nThe contents of this Section was automatically moved to\n="
1842
Removed:
user-emacs-directory (org-entry-get nil "sd-unpack-path") "=.\n"
1843
Removed:
"Use `sd-pack-section' to copy the contents back into this section."))))
1844
Removed:
1845
Removed:
(defun sd-pack-section ()
1846
Removed:
"Pack SECTION into `my/literate-config'."
1847
Removed:
(interactive)
1848
Removed:
(message "foobar!!!"))
1849
Removed:
1850
Removed:
(global-set-key (kbd "C-t") 'sd-pack-section)
1851
Removed:
1852
Removed:
(sd-unpack "init.el")
1853
Removed:
#+END_SRC