diff options
| author | Zofia Szweda <sophies@disroot.org> | 2026-09-15 14:16:46 +0200 |
|---|---|---|
| committer | Zofia Szweda <sophies@disroot.org> | 2026-09-15 14:16:46 +0200 |
| commit | 29d9b221c85b24969540a2e8aa1c01b50a0cbaff (patch) | |
| tree | abb1df8655ce64c6de65d3cb8b376008c9f8479e /doom/.config | |
| parent | bcf4aefdb7713617b57ecc96c9f211e70cbec214 (diff) | |
more emacs stuff with doom
Diffstat (limited to 'doom/.config')
| -rw-r--r-- | doom/.config/doom/config.el | 64 | ||||
| -rw-r--r-- | doom/.config/doom/init.el | 16 | ||||
| -rw-r--r-- | doom/.config/doom/packages.el | 6 |
3 files changed, 75 insertions, 11 deletions
diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index dc0c435..bf64ede 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/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 diff --git a/doom/.config/doom/init.el b/doom/.config/doom/init.el index fea74f1..8104119 100644 --- a/doom/.config/doom/init.el +++ b/doom/.config/doom/init.el @@ -23,15 +23,15 @@ :completion ;;company ; the ultimate code completion backend (corfu +orderless) ; complete with cap(f), cape and a flying feather! - helm ; the *other* search engine for love and life + ;;helm ; the *other* search engine for love and life ;;ido ; the other *other* search engine... ;;ivy ; a search engine for love and life - ;;vertico ; the search engine of the future + vertico ; the search engine of the future :ui ;;deft ; notational velocity for Emacs doom ; what makes DOOM look the way it does - dashboard ; a nifty splash screen for Emacs + ;;dashboard ; a nifty splash screen for Emacs ;;doom-quit ; DOOM quit-message prompts when you quit Emacs ;;(emoji +unicode) ; 🙂 hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW @@ -57,7 +57,7 @@ (evil +everywhere); come to the dark side, we have cookies file-templates ; auto-snippets for empty files fold ; (nigh) universal code folding - ;;(format +onsave) ; automated prettiness + (format +onsave) ; automated prettiness ;;god ; run Emacs commands without modifier keys ;;lispy ; vim for lisp, for people who don't like vim ;;multiple-cursors ; editing in many places at once @@ -72,7 +72,7 @@ dired ; making dired pretty [functional] electric ; smarter, keyword-based electric-indent eww ; the internet is gross - ;;ibuffer ; interactive buffer management + ibuffer ; interactive buffer management tramp ; remote files at your arthritic fingertips undo ; persistent, smarter undo for your inevitable mistakes vc ; version-control and Emacs, sitting in a tree @@ -141,13 +141,13 @@ ;;gdscript ; the language you waited for ;;(go +lsp) ; the hipster dialect ;;(graphql +lsp) ; Give queries a REST - ;;(haskell +lsp) ; a language that's lazier than I am + (haskell +lsp) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; a language you can depend on ;;json ; At least it ain't XML ;;janet ; Fun fact: Janet is me! ;;(java +lsp) ; the poster child for carpal tunnel syndrome - ;;javascript ; all(hope(abandon(ye(who(enter(here)))))) + javascript ; all(hope(abandon(ye(who(enter(here)))))) ;;julia ; a better, faster MATLAB ;;kotlin ; a better, slicker Java(Script) ;;latex ; writing papers in Emacs has never been so fun @@ -180,7 +180,7 @@ ;;solidity ; do you need a blockchain? No. ;;swift ; who asked for emoji variables? ;;terra ; Earth and Moon in alignment for performance. - ;;web ; the tubes + web ; the tubes ;;yaml ; JSON, but readable ;;zig ; C, but simpler diff --git a/doom/.config/doom/packages.el b/doom/.config/doom/packages.el index 7ff76d9..823138d 100644 --- a/doom/.config/doom/packages.el +++ b/doom/.config/doom/packages.el @@ -51,3 +51,9 @@ ;; (unpin! pinned-package another-pinned-package) ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) ;; (unpin! t) + +(package! tomlparse + :recipe (:host github :repo "johannes-mueller/tomlparse.el")) +(package! zk4e + :recipe (:host codeberg :repo "mcookly/zk-emacs" + :files ("zk4e.el" "zk4e-citar.el"))) |
