Hi,
I use a mac to ssh to a RHEL 5.4 x86_64 system, from where I start emacs, and have the x-window forwarded to my mac screen. My emacs version is 23.1.1.
I was trying to copy/paste between the emacs and other mac native applications. But it didn’t work. I tried all the approaches I found online.
Can someone help me? Really appreciate.
Following is my .emacs file. I do set the x-select-enable-clipboard, interprogram-paste-function, and interprogram-cut-function.
(custom-set-variables
'(auto-fill-mode 1)
'(c-default-style (quote ((c-mode . "gnu") (c++-mode . "gnu") (java-mode . "java") (other . "gnu"))))
'(c-doc-comment-style (quote ((c-mode . javadoc) (c++-mode . javadoc) (java-mode . javadoc) (pike-mode . autodoc))))
'(case-fold-search t)
'(column-number-mode t)
'(compile-command "gmake")
'(current-language-environment "English")
'(delete-selection-mode t)
'(font-lock-auto-fontify t)
'(font-lock-mode-maximum-decoration t)
'(frame-title-format "%b" t)
'(indent-tabs-mode nil)
'(line-number-mode t)
'(load-path (cons "~/.emacs.d/" load-path) t)
'(normal-erase-is-backspace t)
'(require-final-newline t)
'(show-paren-mode t nil (paren))
'(visible-bell t)
'(x-select-enable-clipboard t)
'(x-select-enable-primary nil)
'(interprogram-paste-function 'x-cut-buffer-or-selection-value)
'(interprogram-cut-function 'x-select-text)
)
;;; these will probably be already set to these values, leave them that way if so!
(global-set-key [button4] 'scroll-down)
(global-set-key [button5] 'scroll-up)
(global-set-key "\eg" 'goto-line)
(cua-mode t)
(setq cua-auto-tabify-rectangles nil) ;; Don't tabify after rectangle commands
(transient-mark-mode 1) ;; No region when it is not highlighted
(setq cua-keep-region-after-copy t) ;; Standard Windows behaviour
;;; display the current time
(display-time)
Jieyan