Explorar o código

org: Insert a blank with structure template type "src"

Marco Wahl %!s(int64=7) %!d(string=hai) anos
pai
achega
3f2968c650
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -11918,7 +11918,7 @@ in the block.  Otherwise, insert an empty block."
     (setq column (current-indentation))
     (beginning-of-line)
     (indent-to column)
-    (insert (format "#+begin_%s\n" type))
+    (insert (format "#+begin_%s%s\n" type (if (string-equal "src" type) " " "")))
     (goto-char e)
     (if (bolp)
 	(progn