quarto-emacs
quarto-emacs copied to clipboard
Support for Windows?
I guess this package is not yet supporting windows? For example, when I load the package I find that the value of quarto-command
is nil
.
I don't personally use windows so I can't attest either way, but I certainly believe you. I would very much appreciate a community PR on this!
Just a confirmation; I have no problems whatsoever on Windows 11!
For some reason, RStudio is not adding quarto to the PATH for me. Here's what I did:
Open RStudio, then open a command shell terminal (NOT a git terminal) and type where quarto
. This gave me:
C:/Users/wrightkevi/AppData/Local/Programs/RStudio/bin/quarto/bin/quarto.cmd
Then I modified the quarto-poly-markdown-exporter
function in quarto-mode.el
by adding the full path to quarto
and adding %i
for the input file.
;; the following is the original line of code
;; "quarto render --to=%t --output=%o"))
;; the following is the new line of code
"C:/Users/wrightkevi/AppData/Local/Programs/RStudio/bin/quarto/bin/quarto.cmd render %i --to=%t --output=%o"))
Probably I should have just modified the PATH, but note also the inclusion of %i
. Without %i
I was getting an error that this was not a quarto project.
@kwstat Let me make sure I have this right: your installation of quarto
is the one included in RStudio. Is that right? In that case, RStudio definitely does not add quarto to your path -- and it shouldn't.
But that's not a quarto-emacs bug either, I think it's just that you need to set your PATH environment variable appropriately.
Byte-compiling and loading .emacs fails with (require 'quarto-mode), and returns the message ".emacs:91:1:Error: Symbol’s function definition is void: defvar-1". Quarto is installed and my path includes c:\Program Files\Quarto\bin. quarto-mode.elc is located in .emacs.d/site-lisp and .emacs.d/quarto-mode-20221005.1632. Yet it seems that emacs is not finding quarto-mode.elc. Any suggestions?