I'm new with Emacs and come from Joe.
There I started editing mail from the command line by
joe -rmargin 60
because I don't want to generally set the right margin to 60.
I can't find a similar command-line option in Emacs.
Is there one somewhere?
I'm new with Emacs and come from Joe.
There I started editing mail from the command line by
joe -rmargin 60
because I don't want to generally set the right margin to 60.
I can't find a similar command-line option in Emacs.
Is there one somewhere?
While emacs doesn't have this feature, you can evaluate elisp on startup:
emacs --eval "(setq fill-column 60)"
This will set the value for the initial buffer, however you may want to apply this to a mode instead, read on....
If you only want this for a spesific mode, you an do:
emacs --eval "(add-hook 'mail-mode-hook (lambda () (setq fill-column 60)))"
With emacs 27 you can draw this on startup too:
emacs --eval "(add-hook 'mail-mode-hook (lambda () (setq fill-column 60) (display-fill-column-indicator-mode)))"
Although in this case you would typically do this in your init file, not using the command line, eg:
(add-hook 'mail-mode-hook
(lambda ()
(setq fill-column 60)
(display-fill-column-indicator-mode)))