Add local variables to ensure consistent formatting
Also edit formatting of comments and docstring to respect said variables
This commit is contained in:
parent
5d94c667db
commit
c303340523
5
.dir-locals.el
Normal file
5
.dir-locals.el
Normal file
@ -0,0 +1,5 @@
|
||||
;;; Directory Local Variables
|
||||
;;; For more information see (info "(emacs) Directory Variables")
|
||||
|
||||
((emacs-lisp-mode . ((sentence-end-double-space . t)
|
||||
(indent-tabs-mode . nil))))
|
@ -79,11 +79,11 @@ the variable `org-unique-id-prefix'."
|
||||
(defun org-unique-id-get (&optional pom create prefix)
|
||||
"Get the CUSTOM_ID property of the entry at point-or-marker POM.
|
||||
|
||||
If POM is nil, refer to the entry at point. If the entry does not
|
||||
have an CUSTOM_ID, the function returns nil. However, when CREATE
|
||||
is non nil, create a CUSTOM_ID if none is present already. PREFIX
|
||||
will be passed through to `org-unique-id--new'. In any case, the
|
||||
CUSTOM_ID of the entry is returned."
|
||||
If POM is nil, refer to the entry at point. If the entry does
|
||||
not have an CUSTOM_ID, the function returns nil. However, when
|
||||
CREATE is non nil, create a CUSTOM_ID if none is present already.
|
||||
PREFIX will be passed through to `org-unique-id--new'. In any
|
||||
case, the CUSTOM_ID of the entry is returned."
|
||||
(interactive)
|
||||
(org-with-point-at pom
|
||||
(let* ((orgpath (mapconcat #'identity (org-get-outline-path) "-"))
|
||||
@ -113,7 +113,7 @@ CUSTOM_ID of the entry is returned."
|
||||
"Add a CUSTOM_ID to all headers missing one.
|
||||
|
||||
Only adds ids if the `auto-id' option is set to t in the file
|
||||
somewhere. ie, #+OPTIONS: auto-id:t"
|
||||
somewhere, i.e. #+OPTIONS: auto-id:t"
|
||||
(interactive)
|
||||
(save-excursion
|
||||
(widen)
|
||||
|
Loading…
Reference in New Issue
Block a user