tramp

Cygwin FTP with GNU Emacs doesn't work

我怕爱的太早我们不能终老 提交于 2019-12-12 05:14:16
问题 I am using GNU Emacs 24.0.95.1 under Windows 7 with latest Tramp - 2.2.5-pre. I am trying to use previous version of emacs with integrated Tramp but the issue still the same. I am trying to connect my website via FTP via Emacs/Tramp/Ange-FTP (tramp is a wrapper for ange-ftp). For some resons only Passive mode can be used for my website for FTP. So standard Windows ftp.exe can not be used and I renamed it. For ftp client I am trying to use cygwin ftp. Here is a part from my emacs config: '

TRAMP ignores tramp-remote-path

自闭症网瘾萝莉.ら 提交于 2019-12-10 03:34:15
问题 I have the following in my .emacs: (require 'tramp) (add-to-list 'tramp-remote-path "/some/path") (add-to-list 'tramp-remote-path 'tramp-default-remote-path) so when I open a file using tramp over ssh, I expect my PATH to contain /some/path . Instead, running M-! echo $PATH returns /bin:/usr/bin:/usr/sbin:/usr/local/bin Even if I set export PATH=/hwdisks/data/modules/pkg/git/1.8.4.1/bin/git:$PATH in .bashrc or .profile , PATH is not set correctly. In the tramp log, *debug tramp/ssh remotehost

In Emacs, how do I use directory local variables for remote projects?

和自甴很熟 提交于 2019-12-09 18:03:05
问题 I'm using TRAMP to connect to a remote server and I wanted to use some directory local variables. What are my options? Should I use emacs-server and do it that way, or should I add the directory local variables to my .emacs file? Is there a way to force TRAMP to look for the .dir-locals.el file? 回答1: For Emacs 24.3 or later, see legoscia's answer. For earlier versions, you can use the following workaround from EmacsWiki: We can advise ‘hack-dir-local-variables’ to work around this, if you are

How can I use Powershell as my tramp-encoding-shell?

五迷三道 提交于 2019-12-08 15:58:46
问题 First I start up eshell then I enter the command cd /plink:<user>@<host>:/home/ then I get this error message Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. The command prompt has been disabled by your administrator. Press any key to continue . . . I am trying to connect with plink (which is in my path), also after going through the *Messages* buffer I found this. Couldn't find local shell prompt for (C:\Windows\system32\cmd.exe) I'm 90%

Emacs — dired-mode test to determine remote server name / address

末鹿安然 提交于 2019-12-07 12:35:33
问题 Is there a test to obtain the remote server name (e.g., localhost ) or address (e.g., 12.34.56.789 ) in the current-buffer with dired-mode active? I suppose I could use string-match or split-string and then equal , but I thought there might be a handy function like get server name. iphone -- dired-directory /ssh:root@localhost#2222:/var/mobile/Applications/F30B1574-5979-4764-8742-7F9DB2863094/Documents/.0.data: shared server -- dired-directory /ssh:lawlist@12.34.56.789:/home/lawlist/public

How to force an Emacs tramp time out?

白昼怎懂夜的黑 提交于 2019-12-07 08:35:35
问题 I use TRAMP a lot with emacs. However, sometimes a server goes down and tramp sits waiting for a timeout. Usually it's after doing a C-x-f in ido-mode to open a new file. I have to wait an annoyingly long amount of time. Is there an easy way to tell TRAMP to timeout and let ido-mode continue. I try C-g and the option to open a file never happens. 回答1: In thoses (frequent) cases when tramp stalls, I just halt the process with C-g , kill the tramp buffer and I can then save the file. M-x kill

How can I switch between R sessions in emacs-ess?

不想你离开。 提交于 2019-12-06 18:09:53
问题 I have two sessions open in Emacs-ESS: one on my desktop and one on a server using tramp. How can I tell ESS which session to use? 回答1: Well I use M-x ess-switch-process all the time to switch between my (local) R sessions inside Emacs. Sections 3.2 has details. Edit As a follow-up to aL3xa's comment, I also have these in a my dot.emacs: (require 'uniquify) (setq uniquify-buffer-name-style 'post-forward-angle-brackets) ; Slightly more debatable (global-set-key (kbd "C-x C-b") 'ibuffer) which

Emacs + tramp + plink

扶醉桌前 提交于 2019-12-06 11:32:09
问题 I'm trying to get emacs tramp running under Windows XP to work over putty plink on an Amazon EC2 instance. The documentation for doing this is sparse. I can find partial documentation, but none that addresses all the steps required to get this working. Can anyone provide a walk through, or a pointer to a walk through? 回答1: (add-to-list 'load-path (expand-file-name "C:/tools/emacsw32/emacs/lisp/tramp/lisp")) (require 'tramp) ;(setq tramp-chunksize "500") (setq tramp-default-method "plink")

Emacs: Tab completion of file name appends an extra i:\cygwin

China☆狼群 提交于 2019-12-06 06:25:09
问题 I am facing some strange behavior with file-name completion in emacs. C-x C-f to find file opens up the minibuffer with i:/cygwin/home/rrajagop/StockScreener/working_copy/master_repo/stock_screener/. Hitting a TAB makes it i:/cygwini:/cygwin/home/rrajagop/StockScreener/working_copy/master_repo/stock_screener/. A couple of interesting things I've noticed: When the minibuffer opens up, i:/cygwin is greyed out and the path seems to start from /home. A C-a (go to begining of line) takes me to

Emacs: disable Ido completion in Tramp mode

拟墨画扇 提交于 2019-12-05 20:14:33
问题 I often use ido for auto-completion and tramp to access remote server via ssh. My .emacs includes the following lines: (require 'tramp) (setq tramp-default-method "ssh") (ido-mode 1) (setq ido-enable-flex-matching t) (setq ido-everywhere t) I want to disable Ido completion, when i'm browsing contents of remote server. Note that variable ido-enable-tramp-completion has nothing to do with my problem. Consider line /root@site.com#1234:/var/www/file.txt . I need Ido not to deduct the part after