Skip to content

Commit

Permalink
implement LaTeX style quote around short-selected-text
Browse files Browse the repository at this point in the history
implementation for issue weirdNox#162
  • Loading branch information
petermao committed Jan 7, 2023
1 parent 572585d commit 9f3cb80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org-noter-dev.el
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Guiding principles for this (phm/) refactor

(when (and org-noter-insert-selected-text-inside-note note-body)
(if short-selected-text
(insert note-body)
(insert "``" note-body "''")
(insert "#+BEGIN_QUOTE\n" note-body "\n#+END_QUOTE"))))

;; NOTE(nox): Inserting a new note
Expand Down Expand Up @@ -136,7 +136,7 @@ Guiding principles for this (phm/) refactor
(when note-body
(save-excursion
(if short-selected-text
(insert note-body)
(insert "``" note-body "''")
(insert "#+BEGIN_QUOTE\n" note-body "\n#+END_QUOTE"))))
(when (org-noter--session-hide-other session) (org-overview))

Expand Down

0 comments on commit 9f3cb80

Please sign in to comment.