Browse Source

changes for darwin

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

+ 2
- 1
.bashrc View File

@@ -399,9 +399,10 @@ echo "Japanese letters are 表示可能"

safe-cmd diskinfo

type xrandr >/dev/null 2>&1 && {
isdarwin || type xrandr >/dev/null 2>&1 && {
xrandr | grep --color=never ^Screen
}

iswindows || safe-cmd finger $USER
LANG=C safe-cmd id


+ 6
- 2
.emacs.el View File

@@ -579,8 +579,9 @@ return nil if LIB unfound and downloading failed, otherwise the path of LIB."

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; share clipboard with x
(when (or window-system
(when (and window-system
;; (getenv "DESKTOP_SESSION")
(not (eq window-system 'mac))
)
(setq x-select-enable-clipboard t ; these settings seems to be useless when using emacs in terminal
x-select-enable-primary nil)
@@ -1312,7 +1313,10 @@ otherwise, use `pack-default-extension' for pack."
(not (get-buffer-window bf)))
(kill-buffer bf))))

(setq dired-listing-switches "-lhFG --time-style=long-iso")
(if (eq window-system 'mac)
(setq dired-listing-switches "-lhFG")
(setq dired-listing-switches "-lhFG --time-style=long-iso")
)
(define-minor-mode my-dired-display-all-mode
""
:init-value nil


Loading…
Cancel
Save