Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkdoc fixes #28

Merged
merged 1 commit into from
Dec 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions d2-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
;; Keywords: d2 graphs tools processes
;; URL: https://github.com/andorsk/d2-mode
;; License: GNU General Public License >= 3
;; Package-Requires: ((emacs "25.3"))
;; Package-Requires: ((emacs "26.1"))

;;; Commentary:

Expand Down Expand Up @@ -55,14 +55,15 @@
;; This code was heavily inspired by mermaid-mode @
;; https://github.com/abrochard/mermaid-mode

;; STATE: Alpha. Up for review by Melpa.
;; STATE: Alpha. Up for review by Melpa.
;;
;; Code

(require 'browse-url)
(require 'ob)
(require 'ob-eval)

;;; Code:

(defgroup d2 nil
"Major mode for working with d2 graphs."
:group 'extensions
Expand All @@ -78,7 +79,7 @@
:group 'd2
:type 'string)

(defcustom d2-tmp-dir "/tmp/"
(defcustom d2-tmp-dir (temporary-file-directory)
"Dir for tmp files."
:group 'd2
:type 'string)
Expand Down Expand Up @@ -121,8 +122,8 @@
nil))

(defun d2--locate-declaration (str)
"Locate a certain declaration and return the line
difference and indentation. STR is the declaration."
"Locate a certain declaration and return the line difference and indentation.
STR is the declaration."
(let ((l (line-number-at-pos)))
(save-excursion
(if (re-search-backward str (point-min) t)
Expand Down