|
|
@ -289,14 +289,11 @@ Temporary fix until `org-roam' v2 is out." |
|
|
|
|
|
|
|
(defun nroam--pluralize (n thing) |
|
|
|
"Pluralize the string THING if N>1." |
|
|
|
(format "%s%s" |
|
|
|
thing |
|
|
|
(if (> n 1) "s" ""))) |
|
|
|
(format "%s%s" thing (if (> n 1) "s" ""))) |
|
|
|
|
|
|
|
(defun nroam--ensure-empty-line () |
|
|
|
"Insert a newline character if the buffer does not end with a newline." |
|
|
|
"Insert a newline character if the buffer does contain one before point." |
|
|
|
(let ((inhibit-read-only t)) |
|
|
|
(goto-char (point-max)) |
|
|
|
(unless (eq ?\n (char-before (1- (point)))) (insert "\n")))) |
|
|
|
|
|
|
|
(defun nroam--do-separated-by-newlines (function sequence) |
|
|
|