From 3438d019a9093f42ef4dafdb0885153cfd0fe7b7 Mon Sep 17 00:00:00 2001 From: Petr Nyc Date: Fri, 16 Jan 2026 21:01:08 +0100 Subject: [PATCH] org-jira config for Emacs --- .mailcap | 2 ++ .spacemacs | 22 ++++++++++++++++++++++ .zshrc | 2 ++ 3 files changed, 26 insertions(+) create mode 100644 .mailcap diff --git a/.mailcap b/.mailcap new file mode 100644 index 0000000..aaf90e9 --- /dev/null +++ b/.mailcap @@ -0,0 +1,2 @@ +# inspiration here: https://emacs.stackexchange.com/questions/63436/is-there-some-way-to-view-the-html-part-of-an-email-in-an-external-browser-or-as +text/html; open %s; nametemplate=%s.html \ No newline at end of file diff --git a/.spacemacs b/.spacemacs index 1f60048..62be133 100644 --- a/.spacemacs +++ b/.spacemacs @@ -63,6 +63,7 @@ This function should only modify configuration layer settings." (org :variables org-enable-bootstrap-support t org-enable-jira-support t + jiralib-url "https://jira.oci.oraclecorp.com" ;; org-enable-roam-support t ;; org-enable-roam-ui t ;; org-roam-completion-everywhere t @@ -761,6 +762,27 @@ before packages are loaded." ;; / email config + ;; jira config + + ;; (defun my-jira-bearer-token () + ;; "Return the Authorization header for Jira Bearer token." + ;; (cons "Authorization" + ;; (concat "Bearer " ""))) + ;; (with-eval-after-load 'jiralib + ;; (setq jiralib-token (my-jira-bearer-token))) + + (with-eval-after-load 'jiralib + (setq jiralib-token (cons "Authorization" + (concat "Bearer " (auth-source-pick-first-password + :host "jira.oci.oraclecorp.com"))) + )) + + ;; // jira config + + ;; gnupg config + (setq epa-pinentry-mode 'loopback) + ;; /gnupg config + ;; setting gui font for gui only (defun my/set-gui-font () (when (display-graphic-p) diff --git a/.zshrc b/.zshrc index b5b50bb..d5f660c 100644 --- a/.zshrc +++ b/.zshrc @@ -302,3 +302,5 @@ export PATH=$GEM_HOME/bin:$HOME/.gem/ruby/3.3.0/bin:$PATH if command -v launchctl >/dev/null 2>&1; then export SSH_AUTH_SOCK="$(launchctl getenv SSH_AUTH_SOCK)" fi + +export GPG_TTY=$(tty)