File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 23
23
; ; Keywords: d2 graphs tools processes
24
24
; ; URL: https://github.com/andorsk/d2-mode
25
25
; ; License: GNU General Public License >= 3
26
- ; ; Package-Requires: ((emacs "25.3 "))
26
+ ; ; Package-Requires: ((emacs "26.1 "))
27
27
28
28
; ;; Commentary:
29
29
55
55
; ; This code was heavily inspired by mermaid-mode @
56
56
; ; https://github.com/abrochard/mermaid-mode
57
57
58
- ; ; STATE: Alpha. Up for review by Melpa.
58
+ ; ; STATE: Alpha. Up for review by Melpa.
59
59
; ;
60
- ; ; Code
61
60
62
61
(require 'browse-url )
63
62
(require 'ob )
64
63
(require 'ob-eval )
65
64
65
+ ; ;; Code:
66
+
66
67
(defgroup d2 nil
67
68
" Major mode for working with d2 graphs."
68
69
:group 'extensions
78
79
:group 'd2
79
80
:type 'string )
80
81
81
- (defcustom d2-tmp-dir " /tmp/ "
82
+ (defcustom d2-tmp-dir ( temporary-file-directory )
82
83
" Dir for tmp files."
83
84
:group 'd2
84
85
:type 'string )
121
122
nil ))
122
123
123
124
(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."
126
127
(let ((l (line-number-at-pos )))
127
128
(save-excursion
128
129
(if (re-search-backward str (point-min ) t )
You can’t perform that action at this time.
0 commit comments