Adjust editor margin according to file mode