This commit is contained in:
Petr Nyc
2026-01-16 09:42:02 +01:00
parent 766e6808b5
commit 108c9cefd7
6 changed files with 273 additions and 19 deletions

82
.notmuch-config Normal file
View File

@@ -0,0 +1,82 @@
# .notmuch-config - Configuration file for the notmuch mail system
#
# For more information about notmuch, see https://notmuchmail.org
# Database configuration
#
# Supported values are 'mail_root' and 'path'. The recommended option
# is to set 'mail_root' to the directory where your mail currently exists
# and to where mail will be delivered in the future. Files should be
# individual email messages. By default notmuch will store its database
# in $XDG_DATA_HOME/notmuch; you can override this by setting 'path'.
# If only 'path' is set, this directory is for 'mail_root' and for
# the database location (in a subdirectory called ".notmuch").
#
[database]
path=/Users/jetpac/.mail
# User configuration
#
# Here is where you can let notmuch know how you would like to be
# addressed. Valid settings are
#
# name Your full name.
# primary_email Your primary email address.
# other_email A list (separated by ';') of other email addresses
# at which you receive email.
#
# Notmuch will use the various email addresses configured here when
# formatting replies. It will avoid including your own addresses in the
# recipient list of replies, and will set the From address based on the
# address to which the original email was addressed.
#
[user]
primary_email=petr.nyc@oracle.com
# Configuration for "notmuch new"
#
# The following options are supported here:
#
# tags A list (separated by ';') of the tags that will be
# added to all messages incorporated by "notmuch new".
#
# ignore A list (separated by ';') of file and directory names
# that will not be searched for messages by "notmuch new".
#
# NOTE: *Every* file/directory that goes by one of those
# names will be ignored, independent of its depth/location
# in the mail store.
#
[new]
ignore=.mbsyncstate;.uidvalidity;
tags=unread;inbox;new
# Search configuration
#
# The following option is supported here:
#
# exclude_tags
# A ;-separated list of tags that will be excluded from
# search results by default. Using an excluded tag in a
# query will override that exclusion.
#
[search]
# Maildir compatibility configuration
#
# The following option is supported here:
#
# synchronize_flags Valid values are true and false.
synchronize_flags=true
#
# If true, then the following maildir flags (in message filenames)
# will be synchronized with the corresponding notmuch tags:
#
# Flag Tag
# ---- -------
# D draft
# F flagged
# P passed
# R replied
# S unread (added when 'S' flag is not present)
#
# The "notmuch new" command will notice flag changes in filenames
# and update tags, while the "notmuch tag" and "notmuch restore"
# commands will notice tag changes and update flags in filenames
#
[maildir]

View File

@@ -36,6 +36,7 @@ This function should only modify configuration layer settings."
multiple-cursors ;; https://www.spacemacs.org/layers/+misc/multiple-cursors/README.html#key-bindings multiple-cursors ;; https://www.spacemacs.org/layers/+misc/multiple-cursors/README.html#key-bindings
shell shell
yaml yaml
notmuch
;; themes-megapack ;; themes-megapack
nginx nginx
toml toml
@@ -94,6 +95,7 @@ This function should only modify configuration layer settings."
dotspacemacs-additional-packages '( dotspacemacs-additional-packages '(
org-mac-link org-mac-link
org-alert org-alert
org-msg
;org-caldav ;org-caldav
;org-protocol ;org-protocol
aidermacs aidermacs
@@ -618,6 +620,146 @@ configuration.
Put your configuration code here, except for variables that should be set Put your configuration code here, except for variables that should be set
before packages are loaded." before packages are loaded."
;; email config
;; the saved command is a work-around for not working address completion
(setq notmuch-show-logo nil
notmuch-search-oldest-first nil
notmuch-address-command "/Users/jetpac/bin/notmuch-address"
;; these are default
;; notmuch-hello-sections '(notmuch-hello-insert-header notmuch-hello-insert-saved-searches
;; notmuch-hello-insert-search
;; notmuch-hello-insert-recent-searches
;; notmuch-hello-insert-alltags
;; notmuch-hello-insert-footer)
)
(setq notmuch-saved-searches
'((:name "📥 Inbox" :query "tag:inbox AND tag:unread" :key "i")
(:name "To me Unread" :query "tag:me AND tag:unread")
)
)
;; snippet for direct sending (doesn't work when off VPN)
;; (setq send-mail-function 'smtpmail-send-it
;; smtpmail-smtp-server "internal-mail-router.oracle.com"
;; smtpmail-smtp-service 25
;; smtpmail-stream-type nil
;; user-mail-address "petr.nyc@oracle.com"
;; user-full-name "Petr Nyc")
;; Use local sendmail (Postfix)
(setq send-mail-function 'sendmail-send-it
message-send-mail-function 'sendmail-send-it
sendmail-program "/usr/sbin/sendmail"
mail-specify-envelope-from t
mail-envelope-from 'header
user-mail-address "petr.nyc@oracle.com"
user-full-name "Petr Nyc"
)
(setq notmuch-fcc-dirs "exchange/Sent")
(use-package org-msg
:after notmuch
:config
(setq mail-user-agent 'notmuch-user-agent)
(setq org-msg-options "html-postamble:nil H:5 num:nil ^:{} toc:nil author:nil email:nil \\n:t"
org-msg-startup "hidestars indent inlineimages"
;; org-msg-greeting-fmt "\nHi *%s*,\n\n"
org-msg-greeting-name-limit 3
org-msg-default-alternatives '((new . (text html))
(reply-to-html . (text html))
(reply-to-text . (text)))
;; org-msg-signature "
;; Regards,
;; #+begin_signature
;; Petr
;; #+end_signature
;; \\\\
;; "
)
;; a test for 'nicer' emails
;; (setq org-msg-enforce-css
;; '((img (("max-width" . "100%")))
;; (body (("font-family" . "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif")
;; ("font-size" . "14px")
;; ("line-height" . "1.6")
;; ("color" . "#333")))
;; (h1 (("font-size" . "20px")
;; ("font-weight" . "bold")
;; ("margin-top" . "1em")
;; ("margin-bottom" . "0.5em")
;; ("color" . "#1a1a1a")))
;; (h2 (("font-size" . "18px")
;; ("font-weight" . "bold")
;; ("margin-top" . "1em")
;; ("margin-bottom" . "0.5em")
;; ("color" . "#222")))
;; (h3 (("font-size" . "16px")
;; ("font-weight" . "bold")
;; ("margin-top" . "1em")
;; ("margin-bottom" . "0.5em")
;; ("color" . "#333")))
;; (a (("color" . "#0066cc")
;; ("text-decoration" . "none")
;; ("border-bottom" . "1px solid #0066cc")))
;; (blockquote (("border-left" . "3px solid #ccc")
;; ("margin" . "10px 0 10px 15px")
;; ("padding-left" . "10px")
;; ("font-style" . "italic")
;; ("color" . "#555")))
;; (pre (("background-color" . "#f6f8fa")
;; ("border" . "1px solid #e1e4e8")
;; ("border-radius" . "4px")
;; ("padding" . "10px")
;; ("overflow" . "auto")
;; ("font-family" . "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace")
;; ("font-size" . "13px")))
;; (code (("background-color" . "#f6f8fa")
;; ("padding" . "2px 4px")
;; ("border-radius" . "3px")
;; ("font-family" . "monospace")
;; ("font-size" . "85%")))
;; ;; ("pre .todo" (("color" . "#6a737d")
;; ;; ("font-style" . "italic")
;; ;; ("background-color" . "transparent")))
;; ;; ("pre .done" (("color" . "#6a737d")
;; ;; ("font-style" . "italic")
;; ;; ("background-color" . "transparent")))
;; ;; ("pre .comment" (("color" . "#000000")
;; ;; ("font-style" . "italic")
;; ;; ("background-color" . "#fffff")))
;; ;; ("pre .comment-delimiter" (("color" . "#000000")
;; ;; ("font-style" . "italic")
;; ;; ("background-color" . "#ffffff" )))
;; ;; (".font-lock-comment-face" (("color" . "#000000")
;; ;; ("font-style" . "italic")
;; ;; ("background-color" . "#ffffff")))
;; ;; (".font-lock-comment-delimiter-face" (("color" . "#000000")
;; ;; ("font-style" . "italic")
;; ;; ("background-color" . "#ffffff")))
;; (table (("border-collapse" . "collapse")
;; ("width" . "100%")
;; ("margin" . "1em 0")))
;; (th (("background-color" . "#f6f8fa")
;; ("border" . "1px solid #dfe2e5")
;; ("padding" . "6px 13px")
;; ("font-weight" . "bold")))
;; (td (("border" . "1px solid #dfe2e5")
;; ("padding" . "6px 13px")))))
(org-msg-mode)
)
;; (with-eval-after-load 'org-msg
;; )
;; / email config
;; setting gui font for gui only ;; setting gui font for gui only
(defun my/set-gui-font () (defun my/set-gui-font ()
@@ -867,6 +1009,8 @@ before packages are loaded."
(with-eval-after-load 'markdown-mode (with-eval-after-load 'markdown-mode
(define-key markdown-mode-map (kbd "C-c x") 'my/markdown-toggle-checkbox)) (define-key markdown-mode-map (kbd "C-c x") 'my/markdown-toggle-checkbox))
;; (with-eval-after-load 'flycheck
;; (flycheck-add-next-checker 'lsp '(warning . json-jsonlint)))
(setq calendar-week-start-day 1) ;; calendar start on Monday (setq calendar-week-start-day 1) ;; calendar start on Monday
@@ -889,7 +1033,9 @@ before packages are loaded."
(setq aidermacs-default-chat-mode 'architect (setq aidermacs-default-chat-mode 'architect
aidermacs-default-model "oca/gpt5" aidermacs-default-model "oca/gpt5"
aidermacs-backend 'vterm ;; Highly recommended for Spacemacs/Mac users over comint aidermacs-backend 'vterm ;; Highly recommended for Spacemacs/Mac users over comint
aidermacs-program "/opt/homebrew/bin/ocaider") aidermacs-program "/opt/homebrew/bin/ocaider"
aidermacs-extra-args '("--watch-files")
)
:config :config
;; Optional: Spacemacs-style keybindings (Leader key) ;; Optional: Spacemacs-style keybindings (Leader key)
;; Mnemonic: SPC a (apps) i (intelligence/aider) ;; Mnemonic: SPC a (apps) i (intelligence/aider)
@@ -1100,6 +1246,10 @@ This function is called at the very end of Spacemacs initialization."
"a0ac98a1bde5d6336295fd350155a4aac1d63c53c1b3773062271074d16ebeb5" "a0ac98a1bde5d6336295fd350155a4aac1d63c53c1b3773062271074d16ebeb5"
"bbb13492a15c3258f29c21d251da1e62f1abb8bbd492386a673dcfab474186af" "bbb13492a15c3258f29c21d251da1e62f1abb8bbd492386a673dcfab474186af"
"7fd8b914e340283c189980cd1883dbdef67080ad1a3a9cc3df864ca53bdc89cf" default)) "7fd8b914e340283c189980cd1883dbdef67080ad1a3a9cc3df864ca53bdc89cf" default))
'(notmuch-saved-searches
'((:name "To me Unread" :query "tag:me AND tag:unread" :key [109])
(:name "📥 Inbox" :query "tag:inbox AND tag:unread" :key [105])))
'(notmuch-search-oldest-first nil)
'(package-selected-packages '(package-selected-packages
'(a ace-jump-helm-line ace-link afternoon-theme aggressive-indent aidermacs aio '(a ace-jump-helm-line ace-link afternoon-theme aggressive-indent aidermacs aio
alect-themes alert all-the-icons ample-theme ample-zen-theme alect-themes alert all-the-icons ample-theme ample-zen-theme
@@ -1131,24 +1281,25 @@ This function is called at the very end of Spacemacs initialization."
google-translate gotham-theme grandshell-theme gruber-darker-theme google-translate gotham-theme grandshell-theme gruber-darker-theme
gruvbox-theme haml-mode hc-zenburn-theme hcl-mode helm-ag gruvbox-theme haml-mode hc-zenburn-theme hcl-mode helm-ag
helm-c-yasnippet helm-comint helm-company helm-css-scss helm-descbinds helm-c-yasnippet helm-comint helm-company helm-css-scss helm-descbinds
helm-git-grep helm-ls-git helm-lsp helm-make helm-mode-manager helm-org helm-git-grep helm-ls-git helm-lsp helm-make helm-mode-manager
helm-org-rifle helm-projectile helm-purpose helm-pydoc helm-swoop helm-notmuch helm-org helm-org-rifle helm-projectile helm-purpose
helm-themes helm-xref hemisu-theme heroku-theme hide-comnt hierarchy helm-pydoc helm-swoop helm-themes helm-xref hemisu-theme heroku-theme
highlight-indentation highlight-numbers highlight-parentheses hl-todo hide-comnt hierarchy highlight-indentation highlight-numbers
holy-mode htmlize hungry-delete hybrid-mode impatient-mode importmagic highlight-parentheses hl-todo holy-mode htmlize hungry-delete hybrid-mode
indent-guide info+ inkpot-theme insert-shebang inspector ir-black-theme impatient-mode importmagic indent-guide info+ inkpot-theme insert-shebang
jazz-theme jbeans-theme js-doc js2-mode js2-refactor json-mode inspector ir-black-theme jazz-theme jbeans-theme js-doc js2-mode
json-navigator json-reformat json-snatcher kaolin-themes light-soap-theme js2-refactor json-mode json-navigator json-reformat json-snatcher
link-hint live-py-mode livid-mode load-env-vars log4e lorem-ipsum kaolin-themes light-soap-theme link-hint live-py-mode livid-mode
lsp-docker lsp-mode lsp-origami lsp-pyright lsp-treemacs lsp-ui load-env-vars log4e lorem-ipsum lsp-docker lsp-mode lsp-origami
lush-theme macrostep madhat2r-theme magit magit-section markdown-mode lsp-pyright lsp-treemacs lsp-ui lush-theme macrostep madhat2r-theme magit
markdown-toc material-theme minimal-theme modus-themes moe-theme magit-section markdown-mode markdown-toc material-theme minimal-theme
molokai-theme monochrome-theme monokai-theme multi-line multi-term modus-themes moe-theme molokai-theme monochrome-theme monokai-theme
multi-vterm multiple-cursors mustang-theme nameless naquadah-theme multi-line multi-term multi-vterm multiple-cursors mustang-theme nameless
nginx-mode noctilux-theme nodejs-repl nose npm-mode obsidian-theme naquadah-theme nginx-mode noctilux-theme nodejs-repl nose notmuch
occidental-theme oldlace-theme omtose-phellack-themes open-junk-file npm-mode obsidian-theme occidental-theme ol-notmuch oldlace-theme
org-alert org-caldav org-category-capture org-cliplink org-contrib omtose-phellack-themes open-junk-file org-alert org-caldav
org-download org-jira org-mac-link org-mime org-pomodoro org-present org-category-capture org-cliplink org-contrib org-download org-jira
org-mac-link org-mime org-msg org-pomodoro org-present
org-project-capture org-projectile org-rich-yank org-superstar org-project-capture org-projectile org-rich-yank org-superstar
organic-green-theme orgit orgit-forge origami overseer ox-jira ox-twbs organic-green-theme orgit orgit-forge origami overseer ox-jira ox-twbs
pandoc-mode paradox password-generator pcre2el phoenix-dark-mono-theme pandoc-mode paradox password-generator pcre2el phoenix-dark-mono-theme

View File

@@ -8,3 +8,9 @@ Host bitbucket.oci.oraclecorp.com
HostkeyAlgorithms +ssh-rsa HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa PubkeyAcceptedAlgorithms +ssh-rsa
Host dabel dabel.us.oracle.com andel andel.us.oracle.com gates gates.us.oracle.com
User pnyc
IdentityFile ~/.ssh/dabel.key
RequestTTY yes

4
.yamllint Normal file
View File

@@ -0,0 +1,4 @@
rules:
line-length:
max: 200
allow-non-breakable-words: true

5
.zshrc
View File

@@ -297,3 +297,8 @@ export PATH=$GEM_HOME/bin:$HOME/.gem/ruby/3.3.0/bin:$PATH
# scm-ssh start_agent # scm-ssh start_agent
# export FZF_DEFAULT_OPTS="--style full --preview '/opt/homebrew/bin/pygmentize -g {}' --bind 'focus:transform-header:file --brief {}'" # export FZF_DEFAULT_OPTS="--style full --preview '/opt/homebrew/bin/pygmentize -g {}' --bind 'focus:transform-header:file --brief {}'"
# set to system ssh-agent
if command -v launchctl >/dev/null 2>&1; then
export SSH_AUTH_SOCK="$(launchctl getenv SSH_AUTH_SOCK)"
fi

6
bin/cluster_build_status Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/ksh
#
# Script to perform certain operations in the US, because I'm lazy :-)
#
ssh pnyc@scapen-cs11u4-1.us.oracle.com /home/pdmitche/bin/nightly_history.ksh $@