Skip to content

Commit

Permalink
Fixed some linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andykuszyk committed Sep 13, 2024
1 parent f2a7c1a commit 41348d1
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions ob-jira-markdown.el
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.

Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 41348d1

Please sign in to comment.