Bastien Guerry writes:
> Ihor Radchenko writes:
>
>>> Converted the `load' into `require' because it allows someone working on a
>>> local
>>> repo to `eval-buffer' successfully, given that the individual installs these
>>> dependencies from GNU/NonGNU Elpa. Previously, due to the
On 14/04/2023 16:20, Ruijie Yu wrote:
Ihor Radchenko writes:
Ruijie Yu writes:
Major mode was erronously set to shell-script-mode because of the empty line.
Empty line was added by mistake, see "23.3 Choosing File Modes" in the
Emacs manual:
(info "(emacs) Choosing Modes")
Ihor Radchenko writes:
>> Converted the `load' into `require' because it allows someone working on a
>> local
>> repo to `eval-buffer' successfully, given that the individual installs these
>> dependencies from GNU/NonGNU Elpa. Previously, due to the hard-coded path,
>> `eval-buffer' would not
Ihor Radchenko writes:
> Ruijie Yu via "General discussions about Org-mode."
> writes:
>
>> Major mode was erronously set to shell-script-mode because of the empty line.
>
> There is no error there. The line in question is inline stdin redirect
> in shell. "#..." is what is fed to exec emacs.
Ruijie Yu writes:
>> You can do either way, depending on which part of the script you want to
>> edit.
>
> I tried to actually compare the two versions, and found out that the
> lexical-binding does nothing at all during the script execution,
> regardless of whether there is an empty line or
Ihor Radchenko writes:
> Ruijie Yu via "General discussions about Org-mode."
> writes:
>
>> What is the expected major mode for orgweb/publish.sh? When I open it,
>> I see it is in `shell-script-mode'. This is what I see in
>> orgweb/publish.
Ruijie Yu via "General discussions about Org-mode."
writes:
> Major mode was erronously set to shell-script-mode because of the empty line.
There is no error there. The line in question is inline stdin redirect
in shell. "#..." is what is fed to exec emacs. There is no intention to
define mode
Ruijie Yu via "General discussions about Org-mode."
writes:
> What is the expected major mode for orgweb/publish.sh? When I open it,
> I see it is in `shell-script-mode'. This is what I see in
> orgweb/publish.sh:
>
> --8<---cut here---star
Ruijie Yu writes:
>> Hello,
>>
>> What is the expected major mode for orgweb/publish.sh? When I open it,
>> I see it is in `shell-script-mode'. This is what I see in
>> orgweb/publish.sh:
>>
>> --8<---cut here--
Ruijie Yu via "General discussions about Org-mode."
writes:
> Hello,
>
> What is the expected major mode for orgweb/publish.sh? When I open it,
> I see it is in `shell-script-mode'. This is what I see in
> orgweb/publish.sh:
>
> --8<---cut here-
Hello,
What is the expected major mode for orgweb/publish.sh? When I open it,
I see it is in `shell-script-mode'. This is what I see in
orgweb/publish.sh:
--8<---cut here---start->8---
#!/usr/bin/env sh
":" ; exec emacs --qu
11 matches
Mail list logo