Skip to content

Commit ab2120c

Browse files
authored
Merge pull request #28 from andorsk/checkdoc-fixes
checkdoc fixes
2 parents 15564f7 + f419248 commit ab2120c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

d2-mode.el

+7-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
;; Keywords: d2 graphs tools processes
2424
;; URL: https://github.com/andorsk/d2-mode
2525
;; License: GNU General Public License >= 3
26-
;; Package-Requires: ((emacs "25.3"))
26+
;; Package-Requires: ((emacs "26.1"))
2727

2828
;;; Commentary:
2929

@@ -55,14 +55,15 @@
5555
;; This code was heavily inspired by mermaid-mode @
5656
;; https://github.com/abrochard/mermaid-mode
5757

58-
;; STATE: Alpha. Up for review by Melpa.
58+
;; STATE: Alpha. Up for review by Melpa.
5959
;;
60-
;; Code
6160

6261
(require 'browse-url)
6362
(require 'ob)
6463
(require 'ob-eval)
6564

65+
;;; Code:
66+
6667
(defgroup d2 nil
6768
"Major mode for working with d2 graphs."
6869
:group 'extensions
@@ -78,7 +79,7 @@
7879
:group 'd2
7980
:type 'string)
8081

81-
(defcustom d2-tmp-dir "/tmp/"
82+
(defcustom d2-tmp-dir (temporary-file-directory)
8283
"Dir for tmp files."
8384
:group 'd2
8485
:type 'string)
@@ -121,8 +122,8 @@
121122
nil))
122123

123124
(defun d2--locate-declaration (str)
124-
"Locate a certain declaration and return the line
125-
difference and indentation. STR is the declaration."
125+
"Locate a certain declaration and return the line difference and indentation.
126+
STR is the declaration."
126127
(let ((l (line-number-at-pos)))
127128
(save-excursion
128129
(if (re-search-backward str (point-min) t)

0 commit comments

Comments
 (0)