diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | custom.el | 2 | ||||
-rw-r--r-- | fonts/DejaVuSans.ttf | bin | 757076 -> 0 bytes | |||
-rw-r--r-- | fonts/DejaVuSansMono.ttf | bin | 340712 -> 0 bytes | |||
-rw-r--r-- | fonts/Hermit-Regular.otf | bin | 40040 -> 0 bytes | |||
-rw-r--r-- | img/EmacsIcon.png | bin | 0 -> 3736 bytes | |||
-rw-r--r-- | img/EmacsIcon.svg | 286 | ||||
-rw-r--r-- | smart-documents.org | 159 | ||||
-rw-r--r-- | smart-documents.pdf | bin | 130322 -> 175098 bytes | |||
-rw-r--r-- | templates/documents/default.org (renamed from templates/documents/general.org) | 14 | ||||
-rw-r--r-- | templates/documents/default.org_title (renamed from templates/documents/general.org_title) | 0 | ||||
-rw-r--r-- | themes/blendoit-light-theme.el | 4 |
12 files changed, 377 insertions, 91 deletions
@@ -19,4 +19,5 @@ smart-documents.el* # Misc .org-id-locations -async-bytecomp.log
\ No newline at end of file +async-bytecomp.log +fonts/**
\ No newline at end of file @@ -15,7 +15,7 @@ '(company-quickhelp-color-foreground "#DCDCCC") '(custom-enabled-themes nil) '(custom-safe-themes - '("469032293efae7c0c86a95c39cab8b0ff8883cf4af3f2c292313cf6a71195b40" "8fb0949f4229860cf19034b924eb99c664327c9250fb92a2633bdf4b4abaf060" "c3a2a37e84e474c73c2b468553f9b5b73341419f72bbc1f4a4bcc1230ef86c85" "6495716176be0ced4142593b94a410135e0b373b686a869637824260d2f1ca11" "4467b1c8d7cc78fe98345c9c63eb62cf37844dc6868630add365494bde455715" "faeef63cb31f796b4bdf22f38e614934ab34d7deacaeb89b3e9cccf70aac5a85" "370fb305168fea1614535dc9ca30f496918eaca754b6c8969dd77fa872bec695" "e9f0c0c3397d07eb1c6c3551d67fd151e24bc6d72ec678841623ed572677c97a" "5c32236ef318adafe4102f627f330fa8f448046dfd838eef5cc09c7f682cf71f" "e343fecfb8d681186d594002c9b44ce48c2061599d7e4ec635cf1ca2a277a47a" "302dc61dc55600c7424f945dce9e74fba7df19f4a7bfb72aefd93193fa82ede4" "58f1f85248ba913387d1e7ed02a867161b315cfb5acff0c234e013ffd2577d22" "a256abf590bbc3257cc11d91a312e9fe8487dc1b95a5b7b732dd2f96a7fe5a45" "30368d6195cae9298304e6ac0534b90c85b1655965f1206c5c624270f0f46002" "311aa5df3223b5b4a7c638aad3befb4de9c7f46360d52acd1fa2cd2232b1dcbd" default)) + '("0c5c0078062fafd063a227b4cebb49b65434ea6e9557e3aaf8bc3212ba986512" "469032293efae7c0c86a95c39cab8b0ff8883cf4af3f2c292313cf6a71195b40" "8fb0949f4229860cf19034b924eb99c664327c9250fb92a2633bdf4b4abaf060" "c3a2a37e84e474c73c2b468553f9b5b73341419f72bbc1f4a4bcc1230ef86c85" "6495716176be0ced4142593b94a410135e0b373b686a869637824260d2f1ca11" "4467b1c8d7cc78fe98345c9c63eb62cf37844dc6868630add365494bde455715" "faeef63cb31f796b4bdf22f38e614934ab34d7deacaeb89b3e9cccf70aac5a85" "370fb305168fea1614535dc9ca30f496918eaca754b6c8969dd77fa872bec695" "e9f0c0c3397d07eb1c6c3551d67fd151e24bc6d72ec678841623ed572677c97a" "5c32236ef318adafe4102f627f330fa8f448046dfd838eef5cc09c7f682cf71f" "e343fecfb8d681186d594002c9b44ce48c2061599d7e4ec635cf1ca2a277a47a" "302dc61dc55600c7424f945dce9e74fba7df19f4a7bfb72aefd93193fa82ede4" "58f1f85248ba913387d1e7ed02a867161b315cfb5acff0c234e013ffd2577d22" "a256abf590bbc3257cc11d91a312e9fe8487dc1b95a5b7b732dd2f96a7fe5a45" "30368d6195cae9298304e6ac0534b90c85b1655965f1206c5c624270f0f46002" "311aa5df3223b5b4a7c638aad3befb4de9c7f46360d52acd1fa2cd2232b1dcbd" default)) '(fci-rule-color "#383838") '(fringe-mode 0 nil (fringe)) '(indicate-empty-lines t) diff --git a/fonts/DejaVuSans.ttf b/fonts/DejaVuSans.ttf Binary files differdeleted file mode 100644 index 96dd8b5..0000000 --- a/fonts/DejaVuSans.ttf +++ /dev/null diff --git a/fonts/DejaVuSansMono.ttf b/fonts/DejaVuSansMono.ttf Binary files differdeleted file mode 100644 index 9d65312..0000000 --- a/fonts/DejaVuSansMono.ttf +++ /dev/null diff --git a/fonts/Hermit-Regular.otf b/fonts/Hermit-Regular.otf Binary files differdeleted file mode 100644 index feb1937..0000000 --- a/fonts/Hermit-Regular.otf +++ /dev/null diff --git a/img/EmacsIcon.png b/img/EmacsIcon.png Binary files differnew file mode 100644 index 0000000..02918fc --- /dev/null +++ b/img/EmacsIcon.png diff --git a/img/EmacsIcon.svg b/img/EmacsIcon.svg new file mode 100644 index 0000000..632d53e --- /dev/null +++ b/img/EmacsIcon.svg @@ -0,0 +1,286 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xml:space="preserve" + id="svg4768" + viewBox="0.171 0.201 512 512" + height="48" + width="48" + version="1.0"><metadata + id="metadata70"><rdf:RDF><cc:Work + rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><!-- Gnu Emacs Icon + Copyright (C) 2008-2017 Free Software Foundation, Inc. + + Author: Nicolas Petton <nicolas@petton.fr> + + This file is part of GNU Emacs. + + GNU Emacs is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + GNU Emacs is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. + +--><!-- Created with Inkscape (http://www.inkscape.org/) --><defs + id="defs4770"><linearGradient + id="linearGradient4292"><stop + id="stop4294" + offset="0" + style="stop-color:#411f5d;stop-opacity:1" /><stop + id="stop4296" + offset="1" + style="stop-color:#5b2a85;stop-opacity:1" /></linearGradient><linearGradient + id="linearGradient4284"><stop + offset="0" + style="stop-color:#8381c5;stop-opacity:1" + id="stop4286" /><stop + id="stop4290" + style="stop-color:#7e55b3;stop-opacity:0.99607843" + offset="0.56639391" /><stop + offset="1" + style="stop-color:#a52ecb;stop-opacity:0.99215686" + id="stop4288" /></linearGradient><linearGradient + id="linearGradient4898"><stop + id="stop4278" + style="stop-color:#bab8db;stop-opacity:1" + offset="0" /><stop + id="stop4280" + style="stop-color:#5955a9;stop-opacity:0.99159664" + offset="1" /></linearGradient><linearGradient + id="linearGradient3294"><stop + offset="0" + style="stop-color:#6376e6;stop-opacity:1" + id="stop3296" /><stop + offset="0.50094414" + style="stop-color:#222989;stop-opacity:1" + id="stop3302" /><stop + offset="1" + style="stop-color:#00003d;stop-opacity:1" + id="stop3298" /></linearGradient><linearGradient + id="linearGradient3284"><stop + offset="0" + style="stop-color:#000000;stop-opacity:1" + id="stop3286" /><stop + offset="0.84845906" + style="stop-color:#000000;stop-opacity:0.49803922" + id="stop3292" /><stop + offset="1" + style="stop-color:#000000;stop-opacity:0" + id="stop3288" /></linearGradient><linearGradient + id="linearGradient3274"><stop + offset="0" + style="stop-color:#000000;stop-opacity:1" + id="stop3276" /><stop + offset="1" + style="stop-color:#000000;stop-opacity:0" + id="stop3278" /></linearGradient><linearGradient + id="linearGradient3262"><stop + offset="0" + style="stop-color:#000000;stop-opacity:1" + id="stop3264" /><stop + offset="1" + style="stop-color:#000000;stop-opacity:0" + id="stop3266" /></linearGradient><linearGradient + id="linearGradient3242"><stop + offset="0" + style="stop-color:#282828;stop-opacity:1" + id="stop3244" /><stop + offset="0.39253417" + style="stop-color:#808080;stop-opacity:1" + id="stop3252" /><stop + offset="1" + style="stop-color:#d9d9d9;stop-opacity:1" + id="stop3246" /></linearGradient><linearGradient + id="linearGradient3202"><stop + offset="0" + style="stop-color:#2b2b2b;stop-opacity:1" + id="stop3204" /><stop + offset="0.5" + style="stop-color:#828383;stop-opacity:1" + id="stop3250" /><stop + offset="1" + style="stop-color:#dadbdb;stop-opacity:1" + id="stop3206" /></linearGradient><linearGradient + id="linearGradient4966"><stop + offset="0" + style="stop-color:#b6b3d8;stop-opacity:1" + id="stop4968" /><stop + offset="1" + style="stop-color:#b6b3d8;stop-opacity:0" + id="stop4970" /></linearGradient><linearGradient + id="linearGradient4938"><stop + offset="0" + style="stop-color:#000000;stop-opacity:1" + id="stop4940" /><stop + offset="1" + style="stop-color:#000000;stop-opacity:0" + id="stop4942" /></linearGradient><linearGradient + id="linearGradient4282"><stop + offset="0" + style="stop-color:#bab8db;stop-opacity:1" + id="stop4900" /><stop + offset="1" + style="stop-color:#5955a9;stop-opacity:0.99159664" + id="stop4902" /></linearGradient><linearGradient + id="linearGradient4876"><stop + offset="0" + style="stop-color:#d3d2e8;stop-opacity:1" + id="stop4878" /><stop + offset="1" + style="stop-color:#5955a9;stop-opacity:0.99159664" + id="stop4880" /></linearGradient><radialGradient + gradientTransform="matrix(0.6817439,0,0,0.5905355,-3.8523706,-28.935273)" + gradientUnits="userSpaceOnUse" + xlink:href="#linearGradient4898" + id="radialGradient4892" + fy="-108.96888" + fx="20.951529" + r="266.76535" + cy="-108.96888" + cx="20.951529" /><radialGradient + gradientTransform="matrix(1,0,0,0.1854103,0,383.88493)" + gradientUnits="userSpaceOnUse" + xlink:href="#linearGradient4938" + id="radialGradient4944" + fy="471.26172" + fx="233.8876" + r="170.49393" + cy="471.26172" + cx="233.8876" /><radialGradient + gradientTransform="matrix(1,0,0,0.9121621,0,32.654948)" + gradientUnits="userSpaceOnUse" + xlink:href="#linearGradient4966" + id="radialGradient4972" + fy="371.76376" + fx="299.70135" + r="76.696358" + cy="371.76376" + cx="299.70135" /><radialGradient + gradientTransform="matrix(0.414705,0.3300575,-0.5059004,0.6356454,346.95314,49.479585)" + gradientUnits="userSpaceOnUse" + xlink:href="#linearGradient3202" + id="radialGradient3210" + fy="390.45248" + fx="289.44067" + r="17.67668" + cy="390.45248" + cx="289.44067" /><radialGradient + gradientTransform="matrix(0.414705,0.3300575,-0.5059004,0.6356454,448.41009,-65.398074)" + gradientUnits="userSpaceOnUse" + xlink:href="#linearGradient3202" + id="radialGradient3238" + fy="382.14804" + fx="283.50717" + r="17.67668" + cy="382.14804" + cx="283.50717" /><radialGradient + gradientTransform="matrix(-6.5565014e-2,-5.9721765e-2,1.6871024,-1.8521705,171.90774,540.51473)" + gradientUnits="userSpaceOnUse" + xlink:href="#linearGradient3242" + id="radialGradient3248" + fy="181.18982" + fx="418.45551" + r="63.068935" + cy="181.18982" + cx="418.45551" /><radialGradient + gradientTransform="matrix(0.4055116,-3.3440123e-2,0.1034174,4.3988695,177.23251,-1191.6649)" + gradientUnits="userSpaceOnUse" + xlink:href="#linearGradient3262" + id="radialGradient3268" + fy="357.33591" + fx="354.51709" + r="33.712105" + cy="357.33591" + cx="354.51709" /><radialGradient + gradientTransform="matrix(-0.1339874,-0.1146812,0.3079048,-0.3597394,444.23592,395.03849)" + gradientUnits="userSpaceOnUse" + xlink:href="#linearGradient3274" + id="radialGradient3280" + fy="223.55537" + fx="510.58469" + r="132.28336" + cy="223.55537" + cx="510.58469" /><radialGradient + gradientTransform="matrix(-1.2497569,1.3798305,-9.6289463e-2,-7.2974479e-2,674.3826,-70.590682)" + gradientUnits="userSpaceOnUse" + xlink:href="#linearGradient3284" + id="radialGradient3290" + fy="-158.17821" + fx="284.4671" + r="110.2972" + cy="-158.17821" + cx="284.4671" /><radialGradient + gradientTransform="matrix(-0.1008165,-8.0872321e-2,1.0745309,-1.3395252,13.843287,784.79288)" + gradientUnits="userSpaceOnUse" + xlink:href="#linearGradient3294" + id="radialGradient3300" + fy="356.62274" + fx="425.51019" + r="143.34167" + cy="356.62274" + cx="425.51019" /><filter + height="1.088351" + y="-0.044175496" + width="1.0892536" + x="-0.044626798" + id="filter4350" + style="color-interpolation-filters:sRGB"><feGaussianBlur + id="feGaussianBlur4352" + stdDeviation="8.7848425" /></filter><linearGradient + y2="300.73987" + x2="236.61363" + y1="-161.8512" + x1="-122.20192" + spreadMethod="pad" + gradientTransform="matrix(0.87385837,0,0,0.82818057,246.00762,250.28138)" + gradientUnits="userSpaceOnUse" + id="linearGradient4245" + xlink:href="#linearGradient4284" /><linearGradient + y2="66.018341" + x2="173.94518" + y1="396.6066" + x1="447.80933" + gradientTransform="matrix(0.98684959,0,0,0.98684959,3.0344187,2.5250397)" + gradientUnits="userSpaceOnUse" + id="linearGradient4247" + xlink:href="#linearGradient4292" /></defs><rect + style="fill:none;display:none" + id="rect4772" + y="0.20100001" + x="0.171" + height="512" + width="512" /><g + style="display:none" + id="g4788"><g + style="display:inline" + id="g4790" /></g><g + style="display:none" + id="g4806"><g + style="display:inline" + id="g4808"><path + style="fill:#050505;display:none" + id="path4810" + d="M 349.098,256.651 C 348.833,256.397 386.735,284.256 388.519,281.663 C 394.881,272.411 470.565,188.526 473.303,165.427 C 473.545,163.424 472.787,161.331 472.787,161.331 C 472.787,161.331 471.597,161.187 466.462,157.017 C 463.77,154.825 460.979,152.436 460.979,152.436 C 444.925,153.434 403.094,193.995 349.917,256.004" /></g></g><path + style="opacity:0.40500004;fill:#211f46;fill-opacity:0.99607843;stroke:#0a0b1b;stroke-width:8.53333378;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter4350)" + id="path4233" + d="m 491.66937,257.75916 c 0,131.79436 -105.76,238.63481 -236.22155,238.63481 -130.46155,0 -236.221539,-106.84045 -236.221539,-238.63481 0,-131.79437 105.759989,-238.634808 236.221539,-238.634808 130.46155,0 236.22155,106.840438 236.22155,238.634808 z" + transform="matrix(0.98684957,0,0,0.98684957,3.0344041,2.5250397)" /><path + d="m 488.23812,256.89456 c 0,130.06121 -104.3692,235.49665 -233.1151,235.49665 -128.7459,0 -233.115201,-105.43544 -233.115201,-235.49665 0,-130.06123 104.369301,-235.49666 233.115201,-235.49666 128.7459,0 233.1151,105.43543 233.1151,235.49666 z" + id="path4235" + style="opacity:1;fill:url(#linearGradient4245);fill-opacity:1;stroke:url(#linearGradient4247);stroke-width:13.33816814;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /><path + d="m 175.0003,422.31057 c 0,0 19.7385,1.39634 45.1312,-0.84159 10.2834,-0.9063 49.3267,-4.74128 78.5169,-11.14289 0,0 35.5899,-7.61669 54.6301,-14.63335 19.9225,-7.34185 30.7636,-13.57304 35.6433,-22.40243 -0.2128,-1.80907 1.5024,-8.22438 -7.685,-12.07788 -23.4887,-9.85199 -50.73,-8.06998 -104.6338,-9.21285 -59.7772,-2.05391 -79.6627,-12.05971 -90.2556,-20.11838 -10.1579,-8.17519 -5.05,-30.79254 38.4742,-50.71499 21.9244,-10.60898 107.8705,-30.18698 107.8705,-30.18698 -28.9451,-14.30725 -82.9186,-39.45893 -94.0134,-44.89023 -9.7308,-4.76348 -25.303,-11.93595 -28.6785,-20.61368 -3.8271,-8.33089 9.0383,-15.50726 16.2248,-17.56236 23.1448,-6.67602 55.8182,-10.82538 85.5548,-11.29122 14.9472,-0.23417 17.3734,-1.19586 17.3734,-1.19586 20.6243,-3.42116 34.2014,-17.53175 28.5446,-39.87876 -5.0783,-22.81046 -31.8617,-36.21365 -57.3138,-31.57361 -23.9682,4.36956 -81.7378,21.15007 -81.7378,21.15007 71.4075,-0.61803 83.3592,0.57378 88.697,8.03676 3.1523,4.40742 -1.4324,10.45068 -20.4765,13.56099 -20.733,3.38616 -63.8312,7.46399 -63.8312,7.46399 -41.3449,2.4554 -70.4682,2.61974 -79.203,21.11314 -5.7065,12.08196 6.0854,22.7633 11.2538,29.4493 21.8407,24.28905 53.3882,37.38879 73.6948,47.03553 7.6405,3.62963 30.0586,10.48407 30.0586,10.48407 -65.8782,-3.62335 -113.4003,16.6055 -141.2764,39.89622 -31.5288,29.16261 -17.581403,63.92354 47.0124,85.3268 38.1517,12.6416 57.0725,18.58695 113.9815,13.46232 33.52,-1.80673 38.8041,-0.73155 39.1383,2.01892 0.4705,3.87242 -37.2311,13.49165 -47.524,16.4606 -26.1853,7.55306 -94.8276,22.80438 -95.1712,22.87835 z" + id="path4237" + style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /></svg> diff --git a/smart-documents.org b/smart-documents.org index 4c7bcc4..3765038 100644 --- a/smart-documents.org +++ b/smart-documents.org @@ -2,18 +2,18 @@ #+TITLE: Smart Documents #+AUTHOR: Marius Peter -#+DATE: <2020-07-23 Thu> +#+DATE: <2020-10-23 Fri> #+EMAIL: blendoit@gmail.com #+STARTUP: showall -#+SETUPFILE: ~/.emacs.d/templates/documents/general.org -#+INCLUDE: ~/.emacs.d/templates/documents/general.org_title +#+SETUPFILE: ~/.emacs.d/templates/documents/default.org +#+INCLUDE: ~/.emacs.d/templates/documents/default.org_title # By default, Org Babel does not tangle blocks. #+PROPERTY: header-args :tangle yes # Beautiful font pairing -#+LATEX_HEADER: \setmainfont{urw gothic} -#+LATEX_HEADER: \setmonofont{hermit} +# #+LATEX_HEADER: \setmainfont{urw gothic} +# #+LATEX_HEADER: \setmonofont{hermit} #+LATEX: \begin{abstract} The idea of /Smart Documents/ came to me as I was reflecting on how to improve @@ -53,9 +53,11 @@ document---feel free to experiment and discover. Here are three commands that will help you understand all the symbols in this file, if you are browsing this paper within Emacs itself: -- ~C-h f~ describe function -- ~C-h v~ describe variable -- ~C-h k~ describe key +- ~C-h f~ :: describe function +- ~C-h v~ :: describe variable +- ~C-h k~ :: describe key + +You can always press ~f1~ to access Emacs in-built help. * TODO First-time setup @@ -111,53 +113,21 @@ This is the very first user-editable file loaded by Emacs.[fn::This feature became available in version 27.1.] In it, we disable GUI elements that would otherwise be loaded and displayed once Emacs is ready to accept user input. -#+BEGIN_SRC emacs-lisp - (setq my/early-init-file (concat user-emacs-directory "early-init.el")) - - (defun my/create-early-init-file () - "Create `early-init.el' file in `user-emacs-directory'." - (write-region - "(menu-bar-mode -1) - (tool-bar-mode -1) - (menu-bar-bottom-and-right-window-divider) - (setq gc-cons-threshold 100000000)" nil my/early-init-file)) - - (unless (file-exists-p my/early-init-file) - (menu-bar-mode -1) - (tool-bar-mode -1) - (menu-bar-bottom-and-right-window-divider) - (setq gc-cons-threshold 100000000) - (my/create-early-init-file)) -#+END_SRC +It can be found here: [[file:early-init.el]] ** The second file to load #+BEGIN_QUOTE Traditionally, file =~/.emacs= is used as the init file, although Emacs also looks at =~/.emacs.el=, =~/.emacs.d/init.el=, =~/.config/emacs/init.el=, or -other -locations.[fn::[[https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html]]] -#+END_QUOTE +other locations. -#+BEGIN_SRC emacs-lisp - (setq my/init-file (concat user-emacs-directory "init.el")) +From the GNU website[fn::[[https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html]]] +#+END_QUOTE - (defun my/create-init-file () - "Create `init.el' file in `user-emacs-directory'." - (write-region - "(menu-bar-mode -1) - (tool-bar-mode -1) - (menu-bar-bottom-and-right-window-divider)" nil my/init-file)) +This file can be found here: [[file:init.el]] -;; TODO This is a copy paste of `early.init.el'. Should be changed. - (unless (file-exists-p my/init-file) - (menu-bar-mode -1) - (tool-bar-mode -1) - (menu-bar-bottom-and-right-window-divider) - (my/create-init-file)) -#+END_SRC - - If no file is found, Emacs then loads in its purely vanilla state. +If no file is found, Emacs then loads in its purely vanilla state. ** Profiling --- start @@ -273,8 +243,8 @@ We set the dimensions of the initial frame: We also set the dimensions of subsequent frames: #+BEGIN_SRC emacs-lisp - (add-to-list 'default-frame-alist '(width . 100)) - (add-to-list 'default-frame-alist '(height . 50)) + (add-to-list 'default-frame-alist '(width . 50)) + (add-to-list 'default-frame-alist '(height . 30)) #+END_SRC *** GNU/Linux @@ -360,13 +330,17 @@ is pressed. *** Open the agenda #+BEGIN_SRC emacs-lisp - (global-set-key (kbd "C-c a") 'org-agenda-list) + (global-set-key [f5] 'org-agenda-list) #+END_SRC *** Open the diary #+BEGIN_SRC emacs-lisp - (global-set-key (kbd "C-c d") 'my/find-diary-file) +(global-set-key [f6] + '(lambda () + "Load `org-agenda-diary-file'." + (interactive) + (find-file org-agenda-diary-file))) #+END_SRC ** Windows @@ -385,20 +359,28 @@ is pressed. *** Close window and quit +The following bindings lead to more natural window & frame exit behaviors. + +#+NAME: close-window-or-previous-buffer #+BEGIN_SRC emacs-lisp - (defun my/delete-window-or-previous-buffer () - "Delete window; if sole window, previous buffer." - (interactive) - (if (> (length (window-list)) 1) - (delete-window) - (previous-buffer))) +(global-set-key (kbd "C-w") + '(lambda () + "Delete window; if sole window, previous buffer." + (interactive) + (if (> (length (window-list)) 1) + (delete-window) + (previous-buffer)))) #+END_SRC -The following bindings lead to more natural exit behaviors. - +#+NAME: delete-frame-or-kill-emacs #+BEGIN_SRC emacs-lisp -(global-set-key (kbd "C-w") 'my/delete-window-or-previous-buffer) -(global-set-key (kbd "C-q") 'save-buffers-kill-terminal) +(global-set-key (kbd "C-q") + '(lambda () + (interactive) + "delete frame; if sole frame, kill Emacs." + (if (> (length (frame-list)) 1) + (delete-frame) + (kill-emacs)))) #+END_SRC ** Text display @@ -576,11 +558,10 @@ The agenda displays a chronological list of headings across all agenda files for which the heading or body contain a matching =org-time-stamp=.[fn::An =org-time-stamp= can be inserted with ~C-c .~ (period)] +We open the agenda in a separate window. + #+BEGIN_SRC emacs-lisp -(defun my/find-diary-file () - "Load `org-agenda-diary-file'." - (interactive) - (find-file org-agenda-diary-file)) +(setq org-agenda-window-setup 'other-frame) #+END_SRC *** Timestamps @@ -937,9 +918,9 @@ Get inspiration from ~ibuffer-sidebar~ and create a better sidebar. #+BEGIN_SRC emacs-lisp (use-package rainbow-delimiters - :config (add-hook 'prog-mode-hook #'rainbow-delimiters-mode)) + :config (add-hook 'prog-mode-hook #'rainbow-delimiters-mode)) (electric-pair-mode) - (show-paren-mode 1) +(show-paren-mode 1) #+END_SRC *** Highlight ``color keywords'' in their color @@ -1069,13 +1050,14 @@ Let's pimp out the appearance of our text in Org mode. First, we prettify checkbox lists. #+BEGIN_SRC emacs-lisp -(add-hook 'org-mode-hook - (lambda () - "Beautify Org checkbox symbols." - (push '("[ ]" . "☐") prettify-symbols-alist) - (push '("[X]" . "☑" ) prettify-symbols-alist) - (push '("[-]" . "⬛" ) prettify-symbols-alist) - (prettify-symbols-mode))) +(when (string-equal system-type "gnu/linux") + (add-hook 'org-mode-hook + (lambda () + "Beautify Org checkbox symbols." + (push '("[ ]" . "☐") prettify-symbols-alist) + (push '("[X]" . "☑" ) prettify-symbols-alist) + (push '("[-]" . "⬛" ) prettify-symbols-alist) + (prettify-symbols-mode)))) #+END_SRC ** Minibuffer @@ -1153,19 +1135,34 @@ cursor is a more MS Word-like bar. (setq-default cursor-type 'bar) #+END_SRC -*** TODO Fonts +*** Fonts + +**** Currently used /chad fonts/ -- Hack :: ~default~ and ~fixed-pitch~ +- Hack[fn::https://sourcefoundry.org/hack/] :: ~default~ and ~fixed-pitch~, + default code font - Legible, modern monospace font - Strict, sharp, uncompromising -- Liberation Sans :: ~variable-pitch~ - - Libre alternative to Arial - - Unoffensive -- Open Sans :: ~variable-pitch~ -- Hermit :: ~org-block~, anything Org/meta in general +- Public Sans[fn::https://public-sans.digital.gov/] :: ~variable-pitch~, + default body text font + - Very modern yet neutral + - Designed for the U.S. government + - Exceptional color on screen +- Hermit[fn::https://pcaro.es/p/hermit/] :: ~org-block~, anything Org/meta in + general - Slightly wider than Hack - More opinionated shapes - - Very legible parentheses + - Very legible parentheses, very useful for Emacs Lisp! + +**** Previously used /virgin fonts/ + +- +Liberation Sans+[fn::https://en.wikipedia.org/wiki/Liberation_fonts] :: +~variable-pitch~+ + - Metrically compatible with /Arial/ + - Unoffensive, unambitious forms + - Pretty angular letters, it's like you're trying to read squares +- +Open Sans+[fn::https://www.opensans.com/] :: +~variable-pitch~+ + - Ooh geometric Bauhaus influences, look at me + - Tall leading height is =h a r m o n i o u s= **** Using proportional fonts when needed diff --git a/smart-documents.pdf b/smart-documents.pdf Binary files differindex a774182..3e59ec8 100644 --- a/smart-documents.pdf +++ b/smart-documents.pdf diff --git a/templates/documents/general.org b/templates/documents/default.org index 4a3cc56..cc99dc6 100644 --- a/templates/documents/general.org +++ b/templates/documents/default.org @@ -1,4 +1,4 @@ -# -*- mode: org; -*- # +# -*- mode: org; eval: (visual-line-mode); -*- # # Hide Org mode tags #+OPTIONS: tags:nil @@ -9,8 +9,8 @@ #+LATEX_HEADER: \usepackage[left=1in,right=1in,top=1in,bottom=1.75in]{geometry} # Beautiful fonts ONLY #+LATEX_HEADER: \usepackage{fontspec} -#+LATEX_HEADER: \setmainfont{linux libertine} -#+LATEX_HEADER: \setmonofont{hermit} +#+LATEX_HEADER: \setmainfont{public sans} +#+LATEX_HEADER: \setmonofont{hack} # Get total page count to insert in footer #+LATEX_HEADER: \usepackage{lastpage} @@ -25,11 +25,13 @@ #+LATEX_HEADER: \gpreto\tabular{\renewcommand{\arraystretch}{1.4}\rownum=\z@} #+LATEX_HEADER: \makeatother +# Headers and footers. #+LATEX_HEADER: \usepackage{fancyhdr} -#+LATEX_HEADER: \setlength{\headheight}{40pt} +# Space in the header for a logo or image. +#+LATEX_HEADER: \setlength{\headheight}{36pt} #+LATEX_HEADER_EXTRA: \pagestyle{fancy} #+LATEX_HEADER_EXTRA: \fancyhead[L]{\rule[-12pt]{0pt}{0pt}\texttt{\theauthor}} #+LATEX_HEADER_EXTRA: \fancyhead[C]{\large\textbf{\thetitle}} #+LATEX_HEADER_EXTRA: \fancyhead[R]{\thedate} -#+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.4pt} -#+LATEX_HEADER_EXTRA: \fancyfoot[C]{Page \thepage/\pageref*{LastPage}\\ \hrulefill \\ \footnotesize Copyright \copyright~2020 Marius Peter. All rights reserved.} +#+LATEX_HEADER_EXTRA: \renewcommand{\headrulewidth}{1.5pt} +#+LATEX_HEADER_EXTRA: \fancyfoot[C]{\hrulefill\\[10pt] Page \thepage/\pageref*{LastPage}\\[8pt] \footnotesize Compiled with \includegraphics[height=1.8ex]{./img/EmacsIcon.png}\\ Copyright \copyright~2020 Marius Peter. All rights reserved. } diff --git a/templates/documents/general.org_title b/templates/documents/default.org_title index c2c3c09..c2c3c09 100644 --- a/templates/documents/general.org_title +++ b/templates/documents/default.org_title diff --git a/themes/blendoit-light-theme.el b/themes/blendoit-light-theme.el index a502d9a..9ff287c 100644 --- a/themes/blendoit-light-theme.el +++ b/themes/blendoit-light-theme.el @@ -5,7 +5,7 @@ 'blendoit-light '(cursor ((t (:background "red")))) '(fixed-pitch ((t (:family "Hack")))) - '(variable-pitch ((t (:family "Open Sans")))) + '(variable-pitch ((t (:family "Public Sans")))) '(escape-glyph ((((background dark)) (:foreground "cyan")) (((type pc)) (:foreground "magenta")) (t (:foreground "brown")))) '(homoglyph ((((background dark)) (:foreground "cyan")) (((type pc)) (:foreground "magenta")) (t (:foreground "brown")))) '(minibuffer-prompt ((t (:inherit org-meta-line)))) @@ -60,7 +60,7 @@ '(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")))) - '(font-lock-doc-face ((t (:inherit font-lock-string-face :Family "Open Sans")))) + '(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")))) |