-Set default editor to "nano". When emacs is installed, this will be changed to ...
[hvlinux.git] / stage5 / cis-emacs
index c008cc5..65038df 100755 (executable)
@@ -28,4 +28,7 @@ LOCAL_SITE_LIST=/usr/local/share/emacs/site-lisp
 install -v -m644 -d ${LOCAL_SITE_LIST}
 install -m644 ${SCRDIR}/resources/emacs/buffer-cycle.el ${LOCAL_SITE_LIST}
 
+# Set Emacs as default editor
+sed -i -e "s!^\(EDITOR=\).*!\1emacs!" /etc/profile
+
 exit $?