> > An example identity could look like this in the profiles.rc:
> >
> > macro index <Esc>1 '<enter-command>source
> > ~/.config/neomutt/profiles.d/1.rc<enter>'
> > macro compose <Esc>1 '<enter-command>source
> >
> > ~/.config/neomutt/profiles.d/1.rc<enter><edit-from><kill-line>current-from<enter>'
> > reply-hook '~C ^[email protected]$' 'source
> > ~/.config/neomutt/profiles.d/1.rc'
> I tried your code in both mutt and neomutt, created that 1.rc file in
> the relevant directory, and both of them gives me error
>
> Error in .muttrc, ~/.config/neomutt/profiles.d/1.rc<enter>: unknown
> command
> Error in .muttrc,
> ~/.config/neomutt/profiles.d/1.rc<enter><edit-from><kill-line>current-from<enter>:
> unknown command
> Error in .muttrc, ~/.config/neomutt/profiles.d/1.rc: unknown command
>
> for mutt I also created a 1.rc file in ~.mutt/profiles.d/1.rc, still
> gives me the same errors.
Hm, looks like you took the line breaks verbatim from the mail. Let me
rephrase my previous code:
macro index <Esc>1 '<enter-command>source
~/.config/neomutt/profiles.d/1.rc<enter>
macro compose <Esc>1 '<enter-command>source
~/.config/neomutt/profiles.d/1.rc<enter><edit-from><kill-line>current-from<enter>'
reply-hook '~C ^[email protected]$' 'source
~/.config/neomutt/profiles.d/1.rc'
That's three lines.
> Can you check your codes to see if you typed correctly or you may have
> left something?
Nope, that's pretty much my setup. Of course, I generate the profiles.rc
and the profile.d/*.rc files with a script based on a yaml file, but the
generated configuration looks just like that.
Hope that helps,
Robert