Added d-mode setting for emacs.