瀏覽代碼

small changes for windows

pull/1/head
10sr 13 年之前
父節點
當前提交
bb40ff8eb9
共有 2 個文件被更改,包括 6 次插入3 次删除
  1. +1
    -0
      .bashrc
  2. +5
    -3
      .emacs.el

+ 1
- 0
.bashrc 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存