Defined a function for the modeline management