Browse Source

small changes for windows

pull/1/head
10sr 12 years ago
parent
commit
bb40ff8eb9
2 changed files with 6 additions and 3 deletions
  1. +1
    -0
      .bashrc
  2. +5
    -3
      .emacs.el

+ 1
- 0
.bashrc View File

@@ -325,6 +325,7 @@ if iscygwin; then
alias cygsu="cygstart /cygwinsetup.exe"
alias emacs="CYGWIN=tty emacs"
echo "cygwin bash"
export PS1=" [\[\e[33m\]\w\[\e[0m\]]\n\[\e[32m\]\u@\H\[\e[0m\] \d \t \s.\v\nhist:\# jobs:\j \$ "
fi

#######################


+ 5
- 3
.emacs.el View File

@@ -1680,8 +1680,10 @@ when SEC is nil, stop auto save if enabled."
(defun my-execute-terminal ()
""
(interactive)
(if (and window-system
(not (eq window-system 'w32)))
(if (and (or (eq system-type 'windows-nt)
window-system)
my-desktop-terminal
)
(let ((process-environment (cons "TERM=xterm" process-environment)))
(start-process "terminal"
nil
@@ -1691,7 +1693,7 @@ when SEC is nil, stop auto save if enabled."
(defun my-term ()
""
(interactive)
(if (eq window-system 'w32)
(if (eq system-type 'windows-nt)
(eshell t)
(if (featurep 'multi-term)
(multi-term)


Loading…
Cancel
Save