From d9f98cae151e51ce2c22d346afda24bfb668550b Mon Sep 17 00:00:00 2001 From: Blendoit Date: Fri, 6 Nov 2020 23:06:02 -0800 Subject: Electric modes and new checklist UTF-8 characters; removed org-bullets. --- custom.el | 6 ++--- smart-documents.org | 57 +++++++++++++++++++++++++++++------------ smart-documents.pdf | Bin 242223 -> 251641 bytes snippets/org-mode/quote | 4 +-- themes/blendoit-light-theme.el | 12 ++++----- 5 files changed, 52 insertions(+), 27 deletions(-) diff --git a/custom.el b/custom.el index ec70032..1dde9ee 100644 --- a/custom.el +++ b/custom.el @@ -15,8 +15,8 @@ '(company-quickhelp-color-foreground "#DCDCCC") '(custom-enabled-themes nil) '(custom-safe-themes - '("8bc595fa3d4cde8770ec075aa939bff9ba28f3e70fe34292a43e22690bc63c76" "ab538dce25085abac8ab09b184e9cef8273082a1b2a792f1bf1bf08ecc30056a" "0326fd263f840b21da906e36c54976e211cfcc252800e6ee7dad4a7eb5a3e819" "77dfce3ef0bdf852a7a1b3527aa384c3c895eec7792a68c2d694b7341364da26" "1692d3b1f4bf5c6c55dd090d6a10c613c0b213510892ae305c1f2518cb1a3ab3" "7ddce903be67800840ef2660310123e2ee11c8ec716ac54333d961307389ccde" "95ea953c58a6510531acf2231d9bddad92015214dce68e8ffe216b51237a3a5f" "47ff07593ae6fc4069b49ee32b0f7422239ad3b6619dc37358b9e76c4b014e81" "8a7a94e776727c6ff6ac14ae88826281eea80c687ffee71a8b188e415b737525" "566f33a94ac1f29db041d55a22fb677b1f9abd02a3ea529ac2b67b93624247ac" "bac014130231bcb21409a5ba0368ae6a437d36cb3cd710a814c2b8399dacd0a3" "3db2664cf7a2f3ca8add66736e8b432ad7aed88159c74dc220ffdc0580d37ffa" "41d8c624783c3bf1624ac595936a6968fbd7297ffdc40a0c9b080fa750027df0" "abf6e5f8aa2af79ac329a7bfcac3111dab0025ce3eaea24e424fb9e3e77e1162" "6dd0e1980e88c5bc5c4c9ab1e8b16b13287a4fa5a2e11970c0d26dfbcf2d62f3" "e479b796a220addcd20678fbb95018e4945ca574ba9900b54d107ed1569c704c" "46d1602c1e28e6223fec2bcd008312bc57a08e5ccc8c2ac35c40e6a5d2a20244" "57c9cc95433eb236e74a3b501d3bebb2716e1988cf633c47384d33d8a83a7940" "1229a1fe390f71ddeec71efd61129af285d032364a1957f9954845a6c5f617a1" "42350b596ca9d6a283ce13efb9bbb7774064d917e04ea3220ebf32b95a677d60" "07b0edb4d75390504029f7905ca8add46af2c8bb13cec46efb0d880de014464c" "884b3999dfeff6d4f45859239a46b84399ab1b3602dd2ee6d11f3a3e39fe088d" "0c5c0078062fafd063a227b4cebb49b65434ea6e9557e3aaf8bc3212ba986512" "469032293efae7c0c86a95c39cab8b0ff8883cf4af3f2c292313cf6a71195b40" "8fb0949f4229860cf19034b924eb99c664327c9250fb92a2633bdf4b4abaf060" "c3a2a37e84e474c73c2b468553f9b5b73341419f72bbc1f4a4bcc1230ef86c85" "6495716176be0ced4142593b94a410135e0b373b686a869637824260d2f1ca11" "4467b1c8d7cc78fe98345c9c63eb62cf37844dc6868630add365494bde455715" "faeef63cb31f796b4bdf22f38e614934ab34d7deacaeb89b3e9cccf70aac5a85" "370fb305168fea1614535dc9ca30f496918eaca754b6c8969dd77fa872bec695" "e9f0c0c3397d07eb1c6c3551d67fd151e24bc6d72ec678841623ed572677c97a" "5c32236ef318adafe4102f627f330fa8f448046dfd838eef5cc09c7f682cf71f" "e343fecfb8d681186d594002c9b44ce48c2061599d7e4ec635cf1ca2a277a47a" "302dc61dc55600c7424f945dce9e74fba7df19f4a7bfb72aefd93193fa82ede4" "58f1f85248ba913387d1e7ed02a867161b315cfb5acff0c234e013ffd2577d22" "a256abf590bbc3257cc11d91a312e9fe8487dc1b95a5b7b732dd2f96a7fe5a45" "30368d6195cae9298304e6ac0534b90c85b1655965f1206c5c624270f0f46002" "311aa5df3223b5b4a7c638aad3befb4de9c7f46360d52acd1fa2cd2232b1dcbd" default)) - '(electric-indent-mode nil) + '("28aaafce20205c00c1c5afcd59d9553a621570f74d7ea4214d073a488bf4619c" "ee2934f60c0193ed7ac95a213ae90dba1504b9fc8bb20f54f4876d073f710844" "79ddf9c24ff10afdeeb2778f56c900f329e5b405d234d783cea67730f4a20c17" "dd6543577ed3e750b830635a7c2071343c8cd4b624f00b7e3470c9233fdc2252" "e5511d44e3a5c6a5039999cab6bd2696fddfe1e7f6500f2846b0c0a6b8c4f9e7" "8bc595fa3d4cde8770ec075aa939bff9ba28f3e70fe34292a43e22690bc63c76" "ab538dce25085abac8ab09b184e9cef8273082a1b2a792f1bf1bf08ecc30056a" "0326fd263f840b21da906e36c54976e211cfcc252800e6ee7dad4a7eb5a3e819" "77dfce3ef0bdf852a7a1b3527aa384c3c895eec7792a68c2d694b7341364da26" "1692d3b1f4bf5c6c55dd090d6a10c613c0b213510892ae305c1f2518cb1a3ab3" "7ddce903be67800840ef2660310123e2ee11c8ec716ac54333d961307389ccde" "95ea953c58a6510531acf2231d9bddad92015214dce68e8ffe216b51237a3a5f" "47ff07593ae6fc4069b49ee32b0f7422239ad3b6619dc37358b9e76c4b014e81" "8a7a94e776727c6ff6ac14ae88826281eea80c687ffee71a8b188e415b737525" "566f33a94ac1f29db041d55a22fb677b1f9abd02a3ea529ac2b67b93624247ac" "bac014130231bcb21409a5ba0368ae6a437d36cb3cd710a814c2b8399dacd0a3" "3db2664cf7a2f3ca8add66736e8b432ad7aed88159c74dc220ffdc0580d37ffa" "41d8c624783c3bf1624ac595936a6968fbd7297ffdc40a0c9b080fa750027df0" "abf6e5f8aa2af79ac329a7bfcac3111dab0025ce3eaea24e424fb9e3e77e1162" "6dd0e1980e88c5bc5c4c9ab1e8b16b13287a4fa5a2e11970c0d26dfbcf2d62f3" "e479b796a220addcd20678fbb95018e4945ca574ba9900b54d107ed1569c704c" "46d1602c1e28e6223fec2bcd008312bc57a08e5ccc8c2ac35c40e6a5d2a20244" "57c9cc95433eb236e74a3b501d3bebb2716e1988cf633c47384d33d8a83a7940" "1229a1fe390f71ddeec71efd61129af285d032364a1957f9954845a6c5f617a1" "42350b596ca9d6a283ce13efb9bbb7774064d917e04ea3220ebf32b95a677d60" "07b0edb4d75390504029f7905ca8add46af2c8bb13cec46efb0d880de014464c" "884b3999dfeff6d4f45859239a46b84399ab1b3602dd2ee6d11f3a3e39fe088d" "0c5c0078062fafd063a227b4cebb49b65434ea6e9557e3aaf8bc3212ba986512" "469032293efae7c0c86a95c39cab8b0ff8883cf4af3f2c292313cf6a71195b40" "8fb0949f4229860cf19034b924eb99c664327c9250fb92a2633bdf4b4abaf060" "c3a2a37e84e474c73c2b468553f9b5b73341419f72bbc1f4a4bcc1230ef86c85" "6495716176be0ced4142593b94a410135e0b373b686a869637824260d2f1ca11" "4467b1c8d7cc78fe98345c9c63eb62cf37844dc6868630add365494bde455715" "faeef63cb31f796b4bdf22f38e614934ab34d7deacaeb89b3e9cccf70aac5a85" "370fb305168fea1614535dc9ca30f496918eaca754b6c8969dd77fa872bec695" "e9f0c0c3397d07eb1c6c3551d67fd151e24bc6d72ec678841623ed572677c97a" "5c32236ef318adafe4102f627f330fa8f448046dfd838eef5cc09c7f682cf71f" "e343fecfb8d681186d594002c9b44ce48c2061599d7e4ec635cf1ca2a277a47a" "302dc61dc55600c7424f945dce9e74fba7df19f4a7bfb72aefd93193fa82ede4" "58f1f85248ba913387d1e7ed02a867161b315cfb5acff0c234e013ffd2577d22" "a256abf590bbc3257cc11d91a312e9fe8487dc1b95a5b7b732dd2f96a7fe5a45" "30368d6195cae9298304e6ac0534b90c85b1655965f1206c5c624270f0f46002" "311aa5df3223b5b4a7c638aad3befb4de9c7f46360d52acd1fa2cd2232b1dcbd" default)) + '(electric-indent-mode t) '(fci-rule-color "#383838") '(fringe-mode 0 nil (fringe)) '(global-tab-line-mode t) @@ -32,7 +32,7 @@ '(org-log-done 'time) '(org-startup-align-all-tables t) '(package-selected-packages - '(mode-icons dashboard undo-tree hungry-delete smooth-scroll smooth-scrolling delight yasnippet-snippets yasnippet org-sticky-header awesome-tab tabbar-ruler tabbar-mode linum-relative dumb-jump csv-mode rainbow-mode org-mouse projectile minimap gnuplot ledger-mode company-mode wombat-theme wombar-theme which-key srefactor-lisp srefactor all-the-icons flycheck ibuffer-sidebar pdf-tools magit rainbow-delimiters smartparens mixed-pitch org-bullets use-package tabbar powerline ivy-hydra flatui-theme evil counsel company benchmark-init)) + '(org-pretty-table mode-icons dashboard undo-tree hungry-delete smooth-scroll smooth-scrolling delight yasnippet-snippets yasnippet org-sticky-header awesome-tab tabbar-ruler tabbar-mode linum-relative dumb-jump csv-mode rainbow-mode org-mouse projectile minimap gnuplot ledger-mode company-mode wombat-theme wombar-theme which-key srefactor-lisp srefactor all-the-icons flycheck ibuffer-sidebar pdf-tools magit rainbow-delimiters smartparens mixed-pitch org-bullets use-package tabbar powerline ivy-hydra flatui-theme evil counsel company benchmark-init)) '(pdf-view-midnight-colors '("#DCDCCC" . "#383838")) '(save-place-mode t) '(send-mail-function 'smtpmail-send-it) diff --git a/smart-documents.org b/smart-documents.org index dbe5590..38542a7 100644 --- a/smart-documents.org +++ b/smart-documents.org @@ -266,8 +266,10 @@ customize-group ~. Backups are very important! #+BEGIN_SRC emacs-lisp :tangle yes - (setq backup-directory-alist `((".*" . ,temporary-file-directory)) - auto-save-file-name-transforms `((".*" ,temporary-file-directory t)) + (setq backup-directory-alist + `((".*" . ,temporary-file-directory)) + auto-save-file-name-transforms + `((".*" ,temporary-file-directory t)) backup-by-copying t ; Don't delink hardlinks version-control t ; Use version numbers on backups delete-old-versions t ; Automatically delete excess backups @@ -839,7 +841,6 @@ Get inspiration from ~ibuffer-sidebar~ and create a better sidebar. #+BEGIN_SRC emacs-lisp :tangle yes (use-package rainbow-delimiters :config (add-hook 'prog-mode-hook #'rainbow-delimiters-mode)) -(electric-pair-mode) (show-paren-mode 1) #+END_SRC @@ -853,14 +854,10 @@ This highlights hexadecimal numbers which look like colors, in that same color. (add-hook 'prog-mode-hook 'rainbow-mode)) #+END_SRC -*** UTF-8 bullet points in =Org mode= +*** +UTF-8 bullet points in =Org mode=+ -#+BEGIN_SRC emacs-lisp :tangle yes - (use-package org-bullets - :config - (when (string-equal system-type "gnu/linux") - (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))) -#+END_SRC +This section was removed, as it is more explicit to display the headline +character for what it is: a collection of at least one asterisk. * ~org-mode~ @@ -1152,7 +1149,7 @@ Org's LaTeX exports. Very stylish, much flair! In this section, we'll implement useful one-click workflows. -*** TODO Export dialogue +** TODO Export dialogue This reimplements the most common Org mode export: Org \rightarrow LaTeX \rightarrow PDF. The binding is defined in Section [[Export to PDF]]. @@ -1196,7 +1193,6 @@ The keybinding for opening a recently visited file is described in paragraph ** Frame *** TODO Header & mode lines - # Top of the buffer is more intuitive for buffer info, bottom is more intuitive # for buffer action. @@ -1258,8 +1254,18 @@ Then, we use the previously declared function to set up our mode line. #+BEGIN_SRC emacs-lisp :tangle yes (global-tab-line-mode) #+END_SRC + +*** Window margins + +#+BEGIN_SRC emacs-lisp :tangle yes +(set-window-margins nil 4 2) +#+END_SRC + + ** Buffer +*** Save cursor location + Save cursor location in visited buffer after closing it or Emacs. #+BEGIN_SRC emacs-lisp :tangle yes @@ -1302,12 +1308,30 @@ checkbox lists. (add-hook 'org-mode-hook (lambda () "Beautify Org checkbox symbols." - (push '("[ ]" . "☐") prettify-symbols-alist) - (push '("[X]" . "☑" ) prettify-symbols-alist) - (push '("[-]" . "⬛" ) prettify-symbols-alist) + (push '("[ ]" . "○") prettify-symbols-alist) + (push '("[X]" . "◉" ) prettify-symbols-alist) + (push '("[-]" . "◎" ) prettify-symbols-alist) (prettify-symbols-mode)))) #+END_SRC +- [ ] This first item is unticked +- [-] This second item is partially completed + - [X] This first sub-item is ticked + - [ ] This sub-item is not ticked +- [ ] This third item is ticked + +*** Electric modes + +Electricity is a very important technology. In Emacs jargon, ``electric'' modes +tend to automate behaviors or present some elegant simplification to a +workflow.[fn::More information can be found at +[[https://www.emacswiki.org/emacs/Electricity]].] + +#+BEGIN_SRC emacs-lisp :tangle yes + (electric-pair-mode) ; Certain character pairs are automatically completed. + (electric-indent-mode) ; Newlines are always intelligently indented. +#+END_SRC + ** Minibuffer We replace the longer ~yes-or-no-p~ questions with more convenient ~y-or-n-p~. @@ -1409,7 +1433,7 @@ cursor is a more MS Word-like bar. **** Previously used /virgin fonts/ - +Liberation Sans+[fn::https://en.wikipedia.org/wiki/Liberation_fonts] :: +~variable-pitch~+ - - Metrically compatible with /Arial/ + - Metrically compatible with /Arial/ (ugh) - Unoffensive, unambitious forms - Pretty angular letters, it's like you're trying to read squares - +Open Sans+[fn::https://www.opensans.com/] :: +~variable-pitch~+ @@ -1457,3 +1481,4 @@ profiling. In this configuration file, we described a series of customization steps taken to make Emacs more palatable to modern IDE users. + diff --git a/smart-documents.pdf b/smart-documents.pdf index 47e177f..da792e5 100644 Binary files a/smart-documents.pdf and b/smart-documents.pdf differ diff --git a/snippets/org-mode/quote b/snippets/org-mode/quote index 633dca7..e716010 100644 --- a/snippets/org-mode/quote +++ b/snippets/org-mode/quote @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: quote -# key: quote +# key: $quote # -- #+BEGIN_QUOTE $0 -#+END_QUOTE \ No newline at end of file +#+END_QUOTE diff --git a/themes/blendoit-light-theme.el b/themes/blendoit-light-theme.el index c31b006..211b3a0 100644 --- a/themes/blendoit-light-theme.el +++ b/themes/blendoit-light-theme.el @@ -1,5 +1,5 @@ (deftheme blendoit-light - "Created 2020-11-05.") + "Created 2020-11-06.") (custom-theme-set-faces 'blendoit-light @@ -51,10 +51,9 @@ '(ivy-minibuffer-match-face-3 ((t (:inherit swiper-match-face-3)))) '(ivy-minibuffer-match-face-4 ((t (:inherit swiper-match-face-4)))) '(ivy-minibuffer-match-highlight ((t (:inherit highlight)))) + '(org-document-title ((t (:weight bold :height 2.0 :family "Jost*")))) '(org-formula ((t (:inherit org-table)))) '(org-meta-line ((t (:foreground "SteelBlue" :family "Hermit")))) - '(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")))) @@ -76,7 +75,7 @@ '(org-checkbox ((t (:weight bold :inherit org-meta-line)))) '(org-todo ((t (:background "tomato" :foreground "White" :weight bold :height 1.2 :family "Hermit")))) '(org-done ((t (:background "ForestGreen" :foreground "White" :weight bold :height 1.2 :family "Hermit")))) - '(org-date ((t (:foreground "steel blue" :family "Hermit")))) + '(org-date ((t (:inherit link)))) '(Info-quoted ((t (:inherit org-block)))) '(org-priority ((t (:inherit org-meta-line)))) '(org-drawer ((t (:inherit org-meta-line)))) @@ -86,8 +85,9 @@ '(tab-line-tab-current ((t (:inherit tab-line-tab :background "grey85" :foreground "red")))) '(tab-line-close-highlight ((t (:foreground "red")))) '(tab-line-highlight ((default (:inherit (tab-line-tab))))) - '(default ((t (:background "white" :foreground "black" :height 140 :family "Hack")))) '(org-quote ((t (:inherit variable-pitch :slant italic)))) - '(org-ellipsis ((t (:inherit shadow :background "white"))))) + '(org-ellipsis ((t (:inherit shadow :background "white")))) + '(org-footnote ((t (:inherit link)))) + '(default ((t (:background "white" :foreground "black" :height 140 :family "Hack"))))) (provide-theme 'blendoit-light) -- cgit v1.2.3