diff options
author | Tom Willemse | 2024-07-01 15:07:54 -0700 |
---|---|---|
committer | Tom Willemse | 2024-07-01 15:07:54 -0700 |
commit | f9ff0da907c4996470ef093315a5e735fa83228f (patch) | |
tree | 295c5f9f3a98258e94207f8af772b59a882b5511 /oni-org/oni-org.el | |
parent | 15181c50d13d4095bbd69ee574ab03d587ffe50e (diff) | |
download | emacs-config-f9ff0da907c4996470ef093315a5e735fa83228f.tar.gz emacs-config-f9ff0da907c4996470ef093315a5e735fa83228f.zip |
[oni-org] Fix indentation
Diffstat (limited to 'oni-org/oni-org.el')
-rw-r--r-- | oni-org/oni-org.el | 20 |
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) |