Add open file with read only mode in emacs.

Signed-off-by: Yunchao Chen <chenyc@marvell.com>