]> Untitled Git - hvlinux.git/commitdiff
-Set default editor to "nano". When emacs is installed, this will be changed to ...
authorgobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Sat, 28 Aug 2010 18:31:54 +0000 (18:31 +0000)
committergobo72 <gobo72@364a67c3-989e-7be9-548d-dae8560ea662>
Sat, 28 Aug 2010 18:31:54 +0000 (18:31 +0000)
functions
stage5/cis-emacs
sysinfos
sysinfos.server
sysinfos.workstn

index 1107738f57c0b7757f91e68d2c0583845343c08c..2227332490a33bb173605c8f4d1bfd4a352a8ee0 100644 (file)
--- a/functions
+++ b/functions
@@ -24,6 +24,8 @@ TAR_OPTS="-b8"
 
 HV_FONTS_PATH="/usr/share/fonts"
 
+DEFAULT_EDITOR=nano
+
 # It seems that when compiling bash-4.0, using
 # "make -j 1" is causing problems...
 if [ "x${MAKEJOBS}" = "x1" ]; then
index c008cc58c791a59c283a68bbcfaf6ba7c9c7e81f..65038df5aa0726115f31aad2b298ddb76baf1596 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 $?
index 0d752cdd70cb858a25b9e97303bd9b7ab3936211..6c2cee6134e80f433d2c158406deaf122e0772ad 100644 (file)
--- a/sysinfos
+++ b/sysinfos
@@ -38,8 +38,6 @@ HVL_TARGET="x86_64"
 # Used for setting '-march=xxx' option in CFLAGS and CPPFLAGS
 MACHINE_ARCHITECTURE=""
 
-DEFAULT_EDITOR="emacs"
-
 # Keyboard mapping (example: us)
 KEYBOARD="us"
 
index 569fa9d6e43732c056b4025cf67d47e4f47fb462..5b7c321a4b3a09c999ef21b126c987acd60cc1c3 100644 (file)
@@ -29,8 +29,6 @@ SWAP_PARTITION="/dev/hda5"
 # Used for setting '-march=xxx' option in CFLAGS and CPPFLAGS
 MACHINE_ARCHITECTURE="pentium"
 
-DEFAULT_EDITOR="emacs"
-
 # Keyboard mapping (example: us)
 KEYBOARD="us"
 
index 89e00c08b4bfb1ad847d65a24cc0a1e29b0bf0ca..f04704bf7915fde86c322f3a2a53f51c094d1ab3 100644 (file)
@@ -29,8 +29,6 @@ SWAP_PARTITION="/dev/hda5"
 # Used for setting '-march=xxx' option in CFLAGS and CPPFLAGS
 MACHINE_ARCHITECTURE="pentium"
 
-DEFAULT_EDITOR="emacs"
-
 # Keyboard mapping (example: us)
 KEYBOARD="us"