[org] add newline after block
This commit is contained in:
parent
019c53b08e
commit
0ceb8e43bc
4
init.org
4
init.org
|
@ -2894,12 +2894,12 @@ TYPE should be an Org block type, e.g. SRC, QUOTE, etc.
|
|||
|
||||
If TYPE is SRC, LANG should be the name of the language as a string, e.g. \"emacs-lisp\"."
|
||||
(let* ((column (- (point) (point-at-bol)))
|
||||
(indent (make-string column ?\ ))
|
||||
(indent (make-string column ?\s))
|
||||
(region-start (region-beginning))
|
||||
(region-end (region-end))
|
||||
(start-string (format "#+BEGIN_%s %s\n" type
|
||||
(if (stringp lang) lang "")))
|
||||
(end-string (format "%s#+END_%s" indent type)))
|
||||
(end-string (format "%s#+END_%s\n" indent type)))
|
||||
;; create a block around a region - preserve position of point
|
||||
(cond ((region-active-p)
|
||||
(save-excursion
|
||||
|
|
Loading…
Reference in New Issue