org-jira config for Emacs

This commit is contained in:
Petr Nyc
2026-01-16 21:01:08 +01:00
parent 108c9cefd7
commit 3438d019a9
3 changed files with 26 additions and 0 deletions

2
.mailcap Normal file
View File

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

View File

@@ -63,6 +63,7 @@ This function should only modify configuration layer settings."
(org :variables (org :variables
org-enable-bootstrap-support t org-enable-bootstrap-support t
org-enable-jira-support t org-enable-jira-support t
jiralib-url "https://jira.oci.oraclecorp.com"
;; org-enable-roam-support t ;; org-enable-roam-support t
;; org-enable-roam-ui t ;; org-enable-roam-ui t
;; org-roam-completion-everywhere t ;; org-roam-completion-everywhere t
@@ -761,6 +762,27 @@ before packages are loaded."
;; / email config ;; / email config
;; jira config
;; (defun my-jira-bearer-token ()
;; "Return the Authorization header for Jira Bearer token."
;; (cons "Authorization"
;; (concat "Bearer " "<token>")))
;; (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 ;; setting gui font for gui only
(defun my/set-gui-font () (defun my/set-gui-font ()
(when (display-graphic-p) (when (display-graphic-p)

2
.zshrc
View File

@@ -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 if command -v launchctl >/dev/null 2>&1; then
export SSH_AUTH_SOCK="$(launchctl getenv SSH_AUTH_SOCK)" export SSH_AUTH_SOCK="$(launchctl getenv SSH_AUTH_SOCK)"
fi fi
export GPG_TTY=$(tty)