doc: Improve option list export

This commit is contained in:
Liam Hupfer
2025-06-29 12:56:31 -05:00
parent 07135ad2e4
commit a53ccbf485
2 changed files with 3 additions and 4 deletions

View File

@@ -1028,14 +1028,14 @@ If you're using the [[https://formulae.brew.sh/formula/emacs][Emacs Homebrew for
a) Add option `-c` to `emacsclient` in the script, and start emacs from command line with `emacs --daemon` a) Add option `-c` to `emacsclient` in the script, and start emacs from command line with `emacs --daemon`
#+begin_src emacs-lisp #+begin_src emacs-lisp
on open location this_URL on open location this_URL
set EC to "/usr/local/bin/emacsclient -c --no-wait " set EC to "/usr/local/bin/emacsclient -c --no-wait "
set filePath to quoted form of this_URL set filePath to quoted form of this_URL
do shell script EC & filePath & " &> /dev/null &" do shell script EC & filePath & " &> /dev/null &"
tell application "Emacs" to activate tell application "Emacs" to activate
end open location end open location
#+end_src #+end_src
b) Add `(server-start)` in .emacs (in this case you do not need option `-c` for `emacsclient` in the script, and you do not need to start emacs with `emacs --daemon` b) Add `(server-start)` in .emacs (in this case you do not need option `-c` for `emacsclient` in the script, and you do not need to start emacs with `emacs --daemon`
@@ -1800,4 +1800,5 @@ an Org file code block (like =#+BEGIN_SRC emacs-lisp=).
# after-save-hook: org-texinfo-export-to-info # after-save-hook: org-texinfo-export-to-info
# indent-tabs-mode: nil # indent-tabs-mode: nil
# org-src-preserve-indentation: nil # org-src-preserve-indentation: nil
# org-list-allow-alphabetical: t
# End: # End:

View File

@@ -1427,7 +1427,6 @@ If you're using the @uref{https://formulae.brew.sh/formula/emacs, Emacs Homebrew
@enumerate @enumerate
@item @item
Add option `-c` to `emacsclient` in the script, and start emacs from command line with `emacs --daemon` Add option `-c` to `emacsclient` in the script, and start emacs from command line with `emacs --daemon`
@end enumerate
@lisp @lisp
on open location this_URL on open location this_URL
@@ -1438,7 +1437,6 @@ on open location this_URL
end open location end open location
@end lisp @end lisp
@enumerate
@item @item
Add `(server-start)` in .emacs (in this case you do not need option `-c` for `emacsclient` in the script, and you do not need to start emacs with `emacs --daemon` Add `(server-start)` in .emacs (in this case you do not need option `-c` for `emacsclient` in the script, and you do not need to start emacs with `emacs --daemon`
@end enumerate @end enumerate