aboutsummaryrefslogtreecommitdiff
path: root/config.el
diff options
context:
space:
mode:
authorZofia Szweda <sophies@disroot.org>2026-09-15 14:16:46 +0200
committerZofia Szweda <sophies@disroot.org>2026-09-15 14:16:46 +0200
commit5824499ec364165ed1a9a6e0dc9f07a9a212f624 (patch)
tree16d1dba017c6809e386078362d53b25d13d619ea /config.el
parent98a0b7a6e84292afd5f4df27a0e9e820d1e281a7 (diff)
more emacs stuff with doom
Diffstat (limited to 'config.el')
-rw-r--r--config.el64
1 files changed, 61 insertions, 3 deletions
diff --git a/config.el b/config.el
index dc0c435..bf64ede 100644
--- a/config.el
+++ b/config.el
@@ -31,7 +31,7 @@
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
-(setq doom-theme 'doom-one)
+(setq doom-theme 'modus-vivendi)
;; Specify both a dark and light theme, like so and Doom will choose which one
;; to load based on your system light/dark setting:
;;
@@ -46,8 +46,56 @@
;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads!
-(setq org-directory "~/org/")
-
+(setq org-directory "~/notes/")
+
+;zk4e setup
+(use-package! zk4e
+ :commands (zk4e-list zk4e-edit zk4e-new zk4e-tag-list zk4e-index zk4e-select-notebook
+ zk4e-goto-error)
+ :custom
+ (zk4e-notebook-directories '(("notes" . "~/notes/")))
+ :config
+ (zk4e-select-notebook "notes")
+ (add-hook 'zk4e-edit-hook #'zk4e-maybe-name-buffer))
+
+; gnus mail setup
+
+;; encryption function
+(defun my/gnus-prompt-encrypt ()
+ "Ask wether to encrypt a message before sending with PGP"
+ (when (y-or-n-p "Encrypt this message? ")
+ (mml-secure-message-encrypt-pgpmime)))
+(add-hook 'message-send-hook #'my/gnus-prompt-encrypt)
+(setq auth-sources '("~/.authinfo.gpg")
+ auth-source-cache-expiry nil
+ epg-pinentry-mode 'loopback)
+; actual gnus setup (broken for now)
+(setq gnus-select-method '(nnnil ""))
+
+(setq gnus-secondary-select-methods
+ '((nnimap "disroot"
+ (nnimap-address "disroot.org")
+ (nnimap-server-port 993)
+ (nnimap-stream ssl)
+ (nnimap-authinfo-file "~/.authinfo.gpg")
+ (nnimap-fetch-partial-articles "text/")
+ (nnir-search-engine imap))))
+(setq smtpmail-smtp-server "disroot.org"
+ smtpmail-smtp-service 587
+ smtpmail-stream-type 'starttls
+ message-send-mail-function #'smtpmail-send-it
+ user-mail-address "roughlynamed@disroot.org"
+ user-full-name "Magdalena Szweda")
+(setq gnus-message-archive-method '(nnimap "disroot")
+ gnus-message-archive-group "Sent"
+ nnmail-expiry-target "Trash")
+(setq gnus-large-newsgroup nil
+ gnus-fetch-old-headers t)
+(setq mml-secure-openpgp-signers '("3258B28C124AB0891D6C9E929B72909EEF00CBD0")
+ mml-secure-openpgp-sign-with-sender t)
+(add-hook 'message-setup-hook #'message-insert-signature)
+(add-hook 'message-send-hook #'mml-secure-message-sign-pgpmime)
+(setq message-signature "\n--\nMagdalena Szweda\nhttps://roughlynamed.net\nPGP: 3258 B28C 124A B089 1D6C 9E92 9B72 909E EF00 CBD0")
(setq-default vterm-shell "/usr/bin/fish")
(setq-default explicit-shell-file-name "/usr/bin/fish")
@@ -56,6 +104,16 @@
(remove-hook 'doom-first-input-hook #'evil-snipe-mode)
+(map! :leader
+ (:prefix ("n z" . "zk")
+ :desc "Edit note" "e" #'zk4e-edit
+ :desc "New note" "n" #'zk4e-new
+ :desc "List notes" "l" #'zk4e-list
+ :desc "Index" "i" #'zk4e-index
+ :desc "Tags" "t" #'zk4e-tag-list
+ :desc "Switch notebook" "s" #'zk4e-select-notebook
+ :desc "Error log" "!" #'zk4e-goto-error))
+
(evil-define-key '(normal visual operator) 'global
"n" 'evil-backward-char
"e" 'evil-next-line