# 8.5. Files

This page manages some options for file management.

Open documents on startup.

  This option allows one or more documents to be opened automatically when KHexEdit is started. One can choose between:

  - None. Do not open any file on startup.

  - Most recent file. Open the most recent file of the previous session.

  - All recent files. Open all recent files of the previous session.

  Note that files specified by command line arguments are not affected by this option.
Jump to previous cursor position on startup

  When selected, the cursor position is saved on exit and restored when a file is automatically opened (by the option above).

Open document with write protection enabled

  When this option is selected, every document that is opened will have the write protect property enabled by default.

Keep cursor position after reloading document

  When a document is reloaded the cursor will remain at the same offset if this option is selected. Otherwise the cursor will be reset to the beginning of the document.

Make a backup when saving document

  Every time a document is saved the original document is preserved if this option is selected. The original filename is appended by a "`˜`" (standard emacs behavior).

Don't save "Recent" document list on exit

  Each time KHexEdit is terminated, the list of the five most recent opened files is written to disk. If this option is selected, then an empty list is written to disk instead. Note that no file can be automatically opened on startup if this option is enabled.

Clear "Recent" document list now

  By activating this button, the list of recent files is removed. The "`Open Recent`" menu in the "`File`" menu will be emptied by this option. However, note that every open document will remain open. The document list (see Document list) is not altered.