Mauro Aranda writes: >> I made it a major mode but not derived from it. >> I've included the Custom-mode options that are useful (as you pointed) >> and run Custom-mode-hook. > > Anyway, I'm OK with this. Maybe we can use derived-mode-add-parents to > be clear that we consider Custom-mode a parent of this new mode. Some > comments below: > >> * lisp/cus-edit.el (Custom-dirlocals-mode): New major mode. >> (custom-dirlocals-with-buffer): Move stuffs to >> `Custom-dirlocals-mode'. > > "stuff". > >> +(define-derived-mode Custom-dirlocals-mode nil "Custom dirlocals" >> + "Major mode for Customize Directory Local Variables in the current directory." > > Please mention that it runs Custom-mode-hook too. Done.