Change to git-crypt

This commit is contained in:
Alexander Rosenberg 2024-08-07 15:40:44 -07:00
parent 8191951378
commit 20933e207d
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
4 changed files with 9 additions and 4 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
elisp/private.el filter=git-crypt diff=git-crypt

1
.gitignore vendored
View File

@ -5,4 +5,3 @@
/tree-sitter/
/tramp
/dape-breakpoints
/private.el

BIN
elisp/private.el Normal file

Binary file not shown.

11
init.el
View File

@ -38,6 +38,12 @@
(diminish 'visual-line-mode)
(diminish 'abbrev-mode))
;; Private config loading
(require 'private nil t)
(defun my/get-private (key)
"Get the private config variable KEY from the private configuration file."
(alist-get key my/private-config))
;; basic stuff
(use-package emacs
:hook (;(emacs-lisp-mode . my/-emacs-lisp-mode-setup-evil-lookup)
@ -1279,7 +1285,6 @@ If no name is given, list all bookmarks instead."
(require 'khard)
;; mu4e
(load (expand-file-name "private.el" user-emacs-directory) t)
(use-package mu4e
:ensure nil
:defer nil
@ -1322,8 +1327,8 @@ If no name is given, list all bookmarks instead."
(string-match-p "^/protonmail/"
(mu4e-message-field msg
:maildir))))
:vars `((user-mail-address . ,(alist-get 'email my/mu4e-private-config))
(user-full-name . ,(alist-get 'name my/mu4e-private-config))
:vars `((user-mail-address . ,(my/get-private 'mu4e-email))
(user-full-name . ,(my/get-private 'mu4e-name))
(message-signature . nil)
(mu4e-refile-folder . "/protonmail/Archive")
(mu4e-sent-folder . "/protonmail/Sent")