Browse Source

Fix some prefs for darwin environment

pull/15/head
10sr 9 years ago
parent
commit
0aa00bf691
2 changed files with 13 additions and 3 deletions
  1. +6
    -2
      emacs.el
  2. +7
    -1
      shrc

+ 6
- 2
emacs.el View File

@@ -942,8 +942,12 @@ IF OK-IF-ALREADY-EXISTS is true force download."
(number-to-string (emacs-pid))))

;; In Cygwin Environment `server-runnning-p' stops when server-use-tcp is nil
(when (eq system-type
'cygwin)
;; In Darwin environment, init fails with message like 'Service name too long'
;; when server-use-tcp is nil
(when (or (eq system-type
'cygwin)
(eq system-type
'darwin))
(setq server-use-tcp t))

(defun my-construct-emacsclient-editor-command ()


+ 7
- 1
shrc View File

@@ -613,7 +613,13 @@ __realpath(){
fi
}

__safe_alias tmux='env -u SHLVL tmux'
if $isdarwin
then
# I want to use env -u, but darwin env does not provide this option
__safe_alias tmux='SHLVL= tmux'
else
__safe_alias tmux='env -u SHLVL tmux'
fi
tx(){
tmux start-server
if test -z "$1"


Loading…
Cancel
Save