Compare commits

..

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

6 changed files with 4 additions and 13 deletions

View File

@ -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
View File

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

1
.gitignore vendored
View File

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

Binary file not shown.

11
init.el
View File

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