From dc05afff4c07b812ae2219c3d4e30247f93845b0 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sun, 11 Aug 2024 19:50:25 -0500 Subject: [PATCH] add git send email config --- common/.config/emacs/tools.org | 8 ++++++++ common/gitconfig.org | 18 ------------------ common/gitconfig.org.gpg | Bin 0 -> 929 bytes gentoo/gitconfig.org | 1 - gentoo/gitconfig.org.gpg | 1 + install | 8 +++++++- macos/gitconfig.org | 1 - macos/gitconfig.org.gpg | 1 + 8 files changed, 17 insertions(+), 21 deletions(-) delete mode 100644 common/gitconfig.org create mode 100644 common/gitconfig.org.gpg delete mode 120000 gentoo/gitconfig.org create mode 120000 gentoo/gitconfig.org.gpg delete mode 120000 macos/gitconfig.org create mode 120000 macos/gitconfig.org.gpg diff --git a/common/.config/emacs/tools.org b/common/.config/emacs/tools.org index ddbf80c..bd6f3ae 100644 --- a/common/.config/emacs/tools.org +++ b/common/.config/emacs/tools.org @@ -148,6 +148,14 @@ Tangle on save. (add-hook 'after-save-hook #'org-babel-tangle-config))) #+end_src +Enable Org Crypt. +#+begin_src emacs-lisp :tangle ~/.config/emacs/tools.el :mkdirp yes + (org-crypt-use-before-save-magic) + (setq org-tags-exclude-from-inheritance '("crypt")) + (setq org-crypt-key nil) + (setq auto-save-default nil) +#+end_src + * Shell Use =eshell= as an integrated shell. #+begin_src emacs-lisp :tangle ~/.config/emacs/tools.el :mkdirp yes diff --git a/common/gitconfig.org b/common/gitconfig.org deleted file mode 100644 index c907204..0000000 --- a/common/gitconfig.org +++ /dev/null @@ -1,18 +0,0 @@ -#+title: Git Configuration -Define my full name and email. -#+begin_src conf :tangle ~/.gitconfig - [user] - name = Jacob Janzen - email = jjanzenn@proton.me -#+end_src -Use =main= over =master=. -#+begin_src conf :tangle ~/.gitconfig - [init] - defaultBranch = main -#+end_src - -Make =pull= rebase on conflict. -#+begin_src conf :tangle ~/.gitconfig - [pull] - rebase = true -#+end_src diff --git a/common/gitconfig.org.gpg b/common/gitconfig.org.gpg new file mode 100644 index 0000000000000000000000000000000000000000..12954b7f13b7444bc1c0b512cb166dfadb20fa2b GIT binary patch literal 929 zcmV;S177@v0t^F>2j(pP9s(l)5CEM9QXr@XVqEu}lJ>sCW_QY)?NMvJP&RvzFPaD< zO@N6zJ>u$}1BdmhH4p$cneFplf0o=JAPyJeUJowoW~yKZ!zrx?4LuApoW+?0qR}d_jUg9G+H3xU7hay>l;w2x$`lO$Rtw!b&Ots1 zZVZb{zntblV8heH;4|u-vlTlT;$IY%bvGTH+)6?-nX}%Q^IB~a!`;1yd5KAIiF|b0 z%DwE;^r{GZT))Qbq=U0)vX-&^7)A-3m>A5MNWB3PwZ1c$=MyNPrF`gVAD_@&oZA&o zR`8=~0Km?syJb)836sLiiU9YcB2#q$x`s=uRU~a)dC+0@&<@!e=n)lrE6TnlY6+0p zf3&~}-+MHLK+mHhPZ*dYP5PjGepJVS@B=wjEG@zI8E5s&ER>u@k*!|?mn{a)5*~DA zgg0A0*HmQ)N#=)Fzm1tPSxn`rW9g70|02n>b>4Fo$Wg#==8+8KfV zX_`HhI4h^-yagzkSJ1c7%DdAiCj~GO>S1YCC6LZSJoXlt^)VH0i+nAbBy)euE4ngN$pe^TRN z27yrxMJAz}P;y?~cIg(2iZ8A?a5@I!W{@Jy+<7S$atpV~R^@W76jfPY2HJ=X2-XiL zWg*JhZ=?f^_9vxKe(DWVNS3*@=>1p(_hftI!uKt9_^2h}du1ox9!{seRW^?OFybBR Di^IA8 literal 0 HcmV?d00001 diff --git a/gentoo/gitconfig.org b/gentoo/gitconfig.org deleted file mode 120000 index e4e5534..0000000 --- a/gentoo/gitconfig.org +++ /dev/null @@ -1 +0,0 @@ -../common/gitconfig.org \ No newline at end of file diff --git a/gentoo/gitconfig.org.gpg b/gentoo/gitconfig.org.gpg new file mode 120000 index 0000000..e4cb6ab --- /dev/null +++ b/gentoo/gitconfig.org.gpg @@ -0,0 +1 @@ +../common/gitconfig.org.gpg \ No newline at end of file diff --git a/install b/install index 51ad486..e55979e 100755 --- a/install +++ b/install @@ -29,10 +29,16 @@ else fi echo 'installing configuration files...' -find -L -- . -type f -name "*.org" | while read -r file; do +find -L -- . -type f -name "*\.org" | while read -r file; do echo " installing $file..." emacs --batch "$file" -f package-initialize --eval '(org-babel-tangle)' >> ~/.update-home.log 2>&1 done +find -L -- . -type f -name "*\.org\.gpg" | while read -r file; do + echo " installing $file..." + gpg -d "$file" > tmp.org + emacs --batch tmp.org -f package-initialize --eval '(org-babel-tangle)' >> ~/.update-home.log 2>&1 + rm tmp.org +done echo 'installing wallpaper...' cp .wallpaper ~/.wallpaper diff --git a/macos/gitconfig.org b/macos/gitconfig.org deleted file mode 120000 index e4e5534..0000000 --- a/macos/gitconfig.org +++ /dev/null @@ -1 +0,0 @@ -../common/gitconfig.org \ No newline at end of file diff --git a/macos/gitconfig.org.gpg b/macos/gitconfig.org.gpg new file mode 120000 index 0000000..e4cb6ab --- /dev/null +++ b/macos/gitconfig.org.gpg @@ -0,0 +1 @@ +../common/gitconfig.org.gpg \ No newline at end of file