Compare commits

..

No commits in common. "20933e207daf929a6feb5dfa265fe40ce33a0aea" and "8dec45039435af0efacc7e1933011b6118aea134" have entirely different histories.

6 changed files with 4 additions and 13 deletions

@ -1,4 +0,0 @@
# Do not edit this file. To specify the files to encrypt, create your own
# .gitattributes file in the directory where your files are.
* !filter !diff
*.gpg binary

1
.gitattributes vendored

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

1
.gitignore vendored

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

Binary file not shown.

11
init.el

@ -38,12 +38,6 @@
(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)
@ -1285,6 +1279,7 @@ 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
@ -1327,8 +1322,8 @@ If no name is given, list all bookmarks instead."
(string-match-p "^/protonmail/"
(mu4e-message-field msg
:maildir))))
:vars `((user-mail-address . ,(my/get-private 'mu4e-email))
(user-full-name . ,(my/get-private 'mu4e-name))
:vars `((user-mail-address . ,(alist-get 'email my/mu4e-private-config))
(user-full-name . ,(alist-get 'name my/mu4e-private-config))
(message-signature . nil)
(mu4e-refile-folder . "/protonmail/Archive")
(mu4e-sent-folder . "/protonmail/Sent")