Is it possible to set options for a file for Nedit as you can do for emacs / vim

With VIM or Emacs, I can put comments in a file, which will be the VIM settings for that file:



/ *
 * Local Variables:     
 * mode: C
 * c-basic-offset: 4
 * c-indentation-style: linux
 * indent-tabs-mode: nil
 * default-tab-width: 8
 * fill-column: 125
 * End:
 *
 * vim: et: sw = 4: ts = 8: si: cindent: cino = \: 0, g0, (0:
 * /

Can you do this with Nedit?

-1


source to share


1 answer


The short answer is, unfortunately, no.

Longer answer (as I'm sure you know) yes, if you end the nedit call in a shell script. The script will need to look at the header of the file you are trying to open for information about the settings. You can then spit this information out to a file and use the "-import" option to load those options into nedit.



Hope this helps a little.

Rob

+2


source







All Articles