On 12/13/2016 09:53 AM, Julien Javaloyes wrote:
Regarding saving in 413 version, I am already doing that File > Export
> More Formats
I was thinking redirect / remap the save button as save in 413 format,
but don't worry, I can use the suggested solution.
You can definitely remap the Save menu item, but keep in mind you would
then save /every/ document in 413 format.
If that's what you want to do, try the following. (I've never done it
myself, but I think it will work.)
1. Copy /usr/share/lyx/ui/stdmenus.inc to ~/.lyx/ui (and make sure the
copy has the write flag set).
2. Edit the copy in a text editor. Changing the line
Item "Save|S" "buffer-write"
to
Item "Save|S" "buffer-export lyx20x"
and save.
After a restart, I think this will do what you want. You might also want
to change
Item "Save As...|A" "buffer-write-as"
to
Item "Save As...|A" "buffer-export-as lyx20x"
to modify the File > Save As... menu option.
You may also want/need to change the keyboard shortcuts (Ctrl+S and
Ctrl+Shift+S). You can do that in Tools > Preferences... > Editing >
Shortcuts. Search for Ctrl+S (which will map to "buffer-write") and
Ctrl+Shift+S ("buffer-write-as") and remap them to "buffer-export
lyx20x" and "buffer-export-as lyx20x" respectively.
Hope that helps,
Paul