-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2a7c1a
commit 41348d1
Showing
1 changed file
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
;;; ob-jira-markdown.el --- org-babel functions for jira-cli evaluation -*- lexical-binding:t; ispell-buffer-session-localwords: (); -*- | ||
;;; ob-jira-markdown.el --- org-babel functions for jira-cli evaluation -*-lexical-binding:t; ispell-buffer-session-localwords: ("jira" "src" "emx-); -*- | ||
|
||
;; Copyright (C) 2024 Andy Kuszyk | ||
|
||
;; Author: Andy Kuszyk <[email protected]> | ||
;; URL: https://github.com/andykuszyk/ob-jira-markdown.el | ||
;; Version: 0.1 | ||
;; Keywords: org-babel | ||
;; Package-Requires: ((emacs "29.1") ob ob-ref ob-comint ob-eval markdown-mode) | ||
;; Package-Requires: ((emacs "29.1") markdown-mode) | ||
|
||
;; This file is not part of GNU Emacs. | ||
|
||
|
@@ -34,12 +34,23 @@ | |
(require 'ob-eval) | ||
(require 'markdown-mode) | ||
|
||
(defgroup ob-jira-markdown | ||
nil | ||
"Variables for the ob-jira-markdown package." | ||
:group 'applications | ||
:prefix "ob-jira-markdown") | ||
|
||
(defcustom ob-jira-markdown-host | ||
nil | ||
"The URL of the Jira host to use when formatting issue URLs." | ||
:type 'string) | ||
|
||
(define-derived-mode jira-markdown-mode markdown-mode "jira-markdown" | ||
"A major mode for editing Jira markup using Markdown.") | ||
|
||
(defvar org-babel-default-header-args:jira-markdown | ||
'((:results . "output")) | ||
"Default arguments for evaluatiing a Jira Markdown source block.") | ||
"Default arguments for evaluating a Jira Markdown source block.") | ||
|
||
(defun org-babel-execute:jira-markdown (body params) | ||
"Create or edit a Jira issue based on a BODY and PARAMS in a source block." | ||
|
@@ -115,10 +126,6 @@ | |
"Replace special characters in BODY ready for CLI execution." | ||
(string-replace "%" "%%" (string-replace "'" "'\"'\"'" body))) | ||
|
||
(defcustom ob-jira-markdown-host | ||
nil | ||
"The URL of the Jira host to use when formatting issue URLs.") | ||
|
||
(defun ob-jira-markdown-open-in-browser () | ||
"Open the Jira issue associated with the current source block in a browser. | ||
|