From 394bedd649ce142e33ee921435ab696407063ad4 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Wed, 3 Feb 2021 18:23:19 -0500 Subject: [PATCH] Encrypt notes + dailies --- docs/daily/2021-02-03.org | 18 ------- docs/daily/2021-02-03.org.gpg | Bin 0 -> 1102 bytes docs/posts/hello.org | 18 ------- docs/posts/hello.org.gpg | Bin 0 -> 847 bytes docs/posts/immutable-emacs.org | 79 ----------------------------- docs/posts/immutable-emacs.org.gpg | Bin 0 -> 2079 bytes 6 files changed, 115 deletions(-) delete mode 100644 docs/daily/2021-02-03.org create mode 100644 docs/daily/2021-02-03.org.gpg delete mode 100644 docs/posts/hello.org create mode 100644 docs/posts/hello.org.gpg delete mode 100644 docs/posts/immutable-emacs.org create mode 100644 docs/posts/immutable-emacs.org.gpg diff --git a/docs/daily/2021-02-03.org b/docs/daily/2021-02-03.org deleted file mode 100644 index 97d0a01..0000000 --- a/docs/daily/2021-02-03.org +++ /dev/null @@ -1,18 +0,0 @@ -#+TITLE: 2021-02-03 -#+AUTHOR: Christopher James Hayward - -* Benefits of Literate Programming - -In the textbook [[file:../notes/thinking-in-cpp.org][Thinking in C++]], *Eckel* uses a custom system for extracting and building all of the source code examples from the text, this is prefaced in the section *Begin and end comment tags*. I beleive he could have benefited here from a [[file:../notes/literate-programming.org][Literate Programming]] environment, automating much of this work without polluting the source code with tags. - -* DONE Dotfiles cleanup -CLOSED: [2021-02-03 Wed 15:51] SCHEDULED: <2021-02-03 Wed> - -I want to re-organize my [[roam:Dotfiles][Dotfiles]], namely move all ~org~ related directories to a ~docs~ subdirectory. - -#+begin_src emacs-lisp -dotfiles/home -#+end_src - -#+RESULTS: -: ~/.emacs.d/ diff --git a/docs/daily/2021-02-03.org.gpg b/docs/daily/2021-02-03.org.gpg new file mode 100644 index 0000000000000000000000000000000000000000..ba25f6ffeff333e2f4d84bcff648b5510fde185c GIT binary patch literal 1102 zcmV-U1hM;t0t^G>9JMNFPA5765C3^>PECoO?ko_53dM==R%-iMZ9)uWDkTDTCjGK>03VgifwzQf7spXq6_Kpahy7swn3N*i97Pwv?L|QNE%+e0) zYYFpL6v41r->lMPp%ycHEg7TP_t{4h4v4~vqQh=3-aS|vAD|DNI)gn0?m?z&GaXqV z_>`=7R|Fo^!FLmiMaesCl&5NBS)sYC4S$YNG5^wNYorJic}d6`j!Gbz=iE z(W#`JcQ+%Vi>HMZmwE$!VDfl4fgzJnI;+3Rp2`Ozq93qosk;+Ax`i0M33YTA0w}jr zDS(7MtcsbvY%1$aqZ+kQ<8tdVhPEBvp*zwTR4&^Dvk5SZZ&vP2a zKIOto#25%`Wy$n%pm8}RP3{=*@244rF2ww>bk7T&Yz%UtWN@fEIuJ#Ne<$%(WcM zpWm$3dSPBdy+(c0_ya>_d$zrX0r!6z{HXB8HEzDBx9@uy(44O?k?uQ4uMR4vBcAU? zIKoUcO9#&|i+TpM1{BkDu5`7qkQ${UCrB?wichXEWlwx|YXZdVatehGpRl5J;Xu7u zj6mg2X#fj@YzlbWoz+HH7bbd)A!%je_q<0^9zwcBT<>Wj?*0<1y?2;9yO)XxrwJDe z!kB{V@$wo8l*ggh=fYV|A7DPUBu;dS1gwoDzhYdca-iymyYg+ z^B!OZwhj`V3;c?S$hh~01ekv}yE<3g!!_&MnnTy|7Ca(i{veEBY2RE$&6*;0a;mO& z!rVU)_;qUG@X?;jE1#0DSbO%!Mzo2DsF<1^`)JnhhJ8uM2_ep_&?E|M2xE1!$u6(N z>91sVlfSKvBp%CZgYCiMfSUr%yCD{1Rx4(LX#a0quuxh-<8B&2%diVDvM?R^s!LuA zd%@7l{`=egJd%qD-!hWmA&iSCP1aC;NGuZ0MWwUH%u>m$V1`%&mXPR3J4by@mtG+P UBSy4;b2pPIy852=$&dysX{MnW=>Px# literal 0 HcmV?d00001 diff --git a/docs/posts/hello.org b/docs/posts/hello.org deleted file mode 100644 index a1db04c..0000000 --- a/docs/posts/hello.org +++ /dev/null @@ -1,18 +0,0 @@ -#+TITLE: Hello, world! -#+AUTHOR: Christopher James Hayward -#+DATE: 2021-01-17 - -#+ROAM_KEY: https://chrishayward.xyz/posts/hello - -#+HUGO_BASE_DIR: ~/.local/source/website -#+HUGO_AUTO_SET_LASTMOD: t -#+HUGO_SECTION: posts - -#+begin_src c -#include - -int main() { - printf("Hello, world!"); - return 0; -} -#+end_src diff --git a/docs/posts/hello.org.gpg b/docs/posts/hello.org.gpg new file mode 100644 index 0000000000000000000000000000000000000000..a35717f2aeb7fc914a5217002104cfc1f1b20f42 GIT binary patch literal 847 zcmV-V1F-ys0t^G>9JMNFPA5765CERM1L-2NCQfOP{#GR`02>nkzg%geAwb>QR(g6>-B5zwcYV6twl&^#8vu z&J8O?EI&&|YD-G%Fo$Xjh&XMZu zUsdpD8U~On_~2)G$BO)kN}bR>CUs4BR&S-hTliu;3rP~5hnBw!daxd*=MaE4@XUjc zx>EjevXc}xlZP^sHI~dyJg-p==-S;roPK5~)q4EGG5wmupn*_3pBuH}QA@}__9a~l z$Z$7O)tIpn&vNWiU&yi^@45h+*m+Fc^2%83mSw>VNaoZ0ym^8LKCy!ErM?|Q=4z*3 zwNR#<BR2a7h>Lt~=?|5#seL6_|H0^9$H_jKCslN7@=TxFyGY`AEZ_>!_mv~RK zD-F1zEaVCCA37me*NW1>eF6Nil)C9<3k|HI>SNB#8ijo4j0EY3rh8c!kcB*3kbAk& z1X(Oy>n7(|E1-%A|6H5eSq0Pp<&F;!Pk*^_MS`$#qAILdHkY8~A3C zV*3+draft#ugR8@#E#M26A*N30y;%OH_gGj8Z{S>hd$#r3U!Tx6w>ES9-Wutldcvw zp%eEPAOGwbd5cv8$w#niZUZX}Y2=N0hYXsVGZ@;jwHWX^h2lY_b_(z36;cQp_Yp`Hy@i6zSJKb*$IXwS0t(@dWSxbC?49I_{cqe zm`|OCC|P0R6{0z}f#)=^3Ds{Qai)%OUwF#~COFn@_g1UlHHW82;jv}(g32%7;!$2D Z4&^SYnk7t`zh@zzjJ(?lWD--A{8!+9o{0be literal 0 HcmV?d00001 diff --git a/docs/posts/immutable-emacs.org b/docs/posts/immutable-emacs.org deleted file mode 100644 index 81c713d..0000000 --- a/docs/posts/immutable-emacs.org +++ /dev/null @@ -1,79 +0,0 @@ -#+TITLE: Immutable Emacs -#+AUTHOR: Christopher James Hayward -#+DATE: 2021-01-19 - -#+ROAM_KEY: https://chrishayward.xyz/posts/immutable-emacs/ - -#+HUGO_BASE_DIR: ~/.local/source/website -#+HUGO_AUTO_SET_LASTMOD: t -#+HUGO_SECTION: posts - -You can easily create an *Immutable* and *100% Reproducible* custom Emacs configuration with very little effort. My inspiration for this came from the =Emacs From Scratch= series by [[https://youtube.com/c/SystemCrafters][System Crafters]]. - -* Getting started -Emacs created *lots* of files relative to ~user-emacs-directory~, which are *not* part of this configuration and do not belong in the same directory. - -+ Disable lockfiles -+ Disable backup files - -To acheive this functionality, before anything else happens we change this directory to ~~/.cache/emacs~, while keeping the old value of ~user-emacs-directory~ in our own variable. - -#+begin_src emacs-lisp -(defvar dotfiles/home user-emacs-directory) -(defvar dotfiles/cache "~/.cache/emacs") - -(setq create-lockfiles nil - make-backup-files nil - user-emacs-directory dotfiles/cache) -#+end_src - -* Package management -[[https://github.com/raxod502/straight.el][Straight]] is a 100% functional package manager for Emacs, with integration for =use-package=, a common way to download / configure / install Emacs packages. - -+ Use the development branch -+ Integrate with =use-package= - -Apply the configurations prior to bootstrapping the package manager, by setting (writing) to the variables that =straight= will ultimately read from. - -#+begin_src emacs-lisp -(setq straight-repository-branch "develop" - straight-use-package-by-default t) -#+end_src - -Bootstrap the package manager, downloading, installing, or configuring depending on the state of the configuration. All packages are downloaded and built from source, and can be pinned to specific git commit hashes. - -#+begin_src emacs-lisp -(defvar bootstrap-version) -(let ((bootstrap-file - (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) - (bootstrap-version 5)) - (unless (file-exists-p bootstrap-file) - (with-current-buffer - (url-retrieve-synchronously - "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" - 'silent 'inhibit-cookies) - (goto-char (point-max)) - (eval-print-last-sexp))) - (load bootstrap-file nil 'nomessage)) -#+end_src - -Complete the integration with =use-package= by installing it with ~straight-use-package~: - -#+begin_src emacs-lisp -(straight-use-package 'use-package) -#+end_src - -* A E S T H E T I C S - -If you've ever looked at default Emacs, you know that it's one of the ugliest GUI applications out of the box. Including a few packages, cherry picked from ~Doom~ can bring Emacs out of the eightes! - -#+begin_src emacs-lisp -(use-package all-the-icons) -(use-package doom-modeline :init (doom-modeline-mode 1)) -(use-package doom-themes :init (load-theme 'doom-one t)) -#+end_src - -* Conclusion -Now that the *stateful* and *immutable* files are seperated, and the default look has been improved *slightly* you're left with a clean, immutable, and reproducible Emacs configuration to continue hacking on. - -Enjoy it! diff --git a/docs/posts/immutable-emacs.org.gpg b/docs/posts/immutable-emacs.org.gpg new file mode 100644 index 0000000000000000000000000000000000000000..fd352ce7d5aff3d254e8e902a2732996e9724ca5 GIT binary patch literal 2079 zcmV+)2;ldH0t^G>9JMNFPA5765C3bMCX=7>DCSfRWvs6CqAMlsS|8X_EfGt$iSFyr zMERZeJ~wBaGUaPk+R}egSsVsp0eE(&DvwR=%_MrfcO^cZPxW9XP-L6em-~|{eIv7g#`l2K$5epJTP{;B-`AnhD|4h%QOjN^h|w^1%@7?)-@NJh#-7z)Jj z-A4ZxpNCGo*pzZN77eJW=*rHAC)^7$mX-94t|LCsm=lc21nK=Fd!Iq+Haf{xgl>9t zk{0lwOyi@~7DJzNCstG!Jdq3=+BTIE$@AE2hb#MxE}D37Y(}Ke+F^qNleK@TAz~b# z$|zl>P7IB6b@#k1{}Jx@4Kbio_Prf_nm0m(_X`JN7lTd&O`L;0yN4?qvxjfMJcVRe z$)616m6L)eiK8WNKH@sw&FiXGrehf#VM4&|`n!I{L;%hD; z$zC(SP*>GU?@Jz}89LJH0b%qCqsMq~x1;V0#z=<^re7U%ltFHxG<8TOkuF-^7Na^1 zXY{3#kxg3s<+{RNFAQxn4rivhZ|;tPqtVWRN5V1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