aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--oni-org/oni-org.el20
1 files changed, 10 insertions, 10 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el
index a3431b0..8b8c448 100644
--- a/oni-org/oni-org.el
+++ b/oni-org/oni-org.el
@@ -95,16 +95,16 @@
(unless (derived-mode-p 'org-mode)
(error "Not currently in an org-mode buffer"))
(save-excursion
- (goto-char (point-min))
- (let ((header-end (or (search-forward "\n\n" nil t)
- (point-max)))
- (case-fold-search t))
- (goto-char (point-min))
- (unless (search-forward "#+startup: inlineimages" header-end t)
- (goto-char (1- header-end))
- (insert "#+STARTUP: inlineimages\n")))))
-
- (defun oni-org-document-remove-inline-images-startup ()
+ (goto-char (point-min))
+ (let ((header-end (or (search-forward "\n\n" nil t)
+ (point-max)))
+ (case-fold-search t))
+ (goto-char (point-min))
+ (unless (search-forward "#+startup: inlineimages" header-end t)
+ (goto-char (1- header-end))
+ (insert "#+STARTUP: inlineimages\n")))))
+
+(defun oni-org-document-remove-inline-images-startup ()
"Remove a line to the current org buffer that will make it load images inline."
(interactive)
(unless (derived-mode-p 'org-mode)