AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[emacs](server)

Martin Hope
user9474
Asked: 2010-04-14 10:19:50 +0800 CST

如何检查 Emacs 是否处于 GUI 模式(然后才执行`tool-bar-mode`)?

  • 16

我的.emacs文件中有这一行:

(tool-bar-mode 0)

因为我讨厌我的 GUI emacs ( /Applications/Emacs.app/Contents/MacOS/Emacs) 中的工具栏。

但是当我在终端()中启动我的其他基于文本的 emacs 时,/opt/local/bin/emacs它会抱怨该命令:

Symbol's function definition is void: tool-bar-mode

如何添加if条件以便它tool-bar-mode仅在我在 GUI emacs 中时执行命令?

谢谢!

mac-osx emacs
  • 4 个回答
  • 6429 Views
Martin Hope
user9474
Asked: 2010-04-14 08:48:10 +0800 CST

如何在 Mac OS 上设置 PATH 变量,以便非终端应用程序也能看到它?

  • 3

我需要在 Mac OS 上的 PATH 变量中添加一个目录。

我将它添加到.bash_profileand.profile中,这适用于终端。

但是 Emacs ( http://emacsformacosx.com ) 仍然不使用新的 PATH 变量。(我正在尝试从 emacs 运行乳胶,但它没有在我的 中找到该命令,/usr/local/bin我正在尝试将其添加到 PATH ...)

我什至注销并重新登录,但仍然没有运气。

有什么建议么?

mac-osx path emacs
  • 2 个回答
  • 2952 Views
Martin Hope
yazz.com
Asked: 2010-03-25 00:57:56 +0800 CST

在 Windows 下运行 emacs 的最佳方法是什么?

  • 3

我尝试使用 GNU Emacs 下载,将其解压缩,然后单击 emacs.exe,但出现了一些模糊的错误。

然后我尝试了 Cygwin emacs,但是当我按 ctrl x ctrl c 退出 emacs 时,它认为我按 ctrl x ctrl "g" !!!我检查了所有键映射,它们在 Emacs 中以其他方式工作。

是否有另一个版本的适用于 Windows 的 emacs 可以正常工作!

windows emacs
  • 5 个回答
  • 1580 Views
Martin Hope
Jürgen A. Erhard
Asked: 2010-03-19 02:54:05 +0800 CST

Emacs/tramp: sudo to root on localhost 在询问密码后挂起

  • -1

不能使用 su 方法,因为我真的不想过多地偏离 Ubuntu 默认设置。ssh 是正确的(对于本地主机?我问你!)。

它显示“等待来自远程外壳的提示”。就是这样,显然。或者它就是那么慢?

sudo emacs tramp
  • 1 个回答
  • 2146 Views
Martin Hope
Chris R
Asked: 2009-07-15 07:24:29 +0800 CST

为什么 Tramp 在向远程主机发送 Perl 脚本时会挂起?

  • 1

我知道这与编程没有直接关系,但我很难过,因为 Emacs 是我的主要编程工具......

我正在尝试设置 Tramp 以连接到我的测试主机。我正在使用/ssh:host:.bashrc或使用它来调用它,/scp:host:.bashrc但是这两者迟早都会遇到同样的问题。

他们只能在进程楔入之前第一次尝试发送 perl 脚本,我被迫从客户端终止 ssh 会话。

例如:

tramp: Opening connection for username@host using scp...
tramp: Waiting 60s for local shell to come up...
tramp: Sending command `ssh host -l username  -e none || exit'
tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell on host host
tramp: Found remote shell prompt on `host'
tramp: Waiting 30s for remote `/bin/sh' to come up...
tramp: Setting up remote shell environment
tramp: Determining coding system
tramp: Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE'
tramp: Waiting 30s for `set +o vi +o emacs'
tramp: Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
tramp: Waiting 30s for `unset CDPATH'
tramp: Setting shell prompt
tramp: Remote `/bin/sh' groks tilde expansion, good
tramp: Finding command to check if file exists
tramp: Finding a suitable `ls' command
tramp: Checking remote `/bin/ls' command for `-n' option
tramp: Testing remote command `/bin/ls' for -n...okay
tramp: Using remote command `/bin/ls' for getting directory listings
tramp: Sending the Perl script `tramp_file_attributes'...
tramp-wait-for-output: Process has died

此跟踪正在使用该scp方法。该ssh方法如下所示:

tramp: Opening connection for username@host using ssh...
tramp: Waiting 60s for local shell to come up...
tramp: Sending command `ssh host -l username  -e none || exit'
tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell on host host
tramp: Found remote shell prompt on `host'
tramp: Waiting 30s for remote `/bin/sh' to come up...
tramp: Setting up remote shell environment
tramp: Determining coding system
tramp: Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE'
tramp: Waiting 30s for `set +o vi +o emacs'
tramp: Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
tramp: Waiting 30s for `unset CDPATH'
tramp: Setting shell prompt
tramp: Remote `/bin/sh' groks tilde expansion, good
tramp: Finding command to check if file exists
tramp: Finding a suitable `ls' command
tramp: Checking remote `/bin/ls' command for `-n' option
tramp: Testing remote command `/bin/ls' for -n...okay
tramp: Using remote command `/bin/ls' for getting directory listings
tramp: Sending the Perl `mime-encode' implementations.
tramp-wait-for-output: Process has died

如您所见,最后发生的事情是尝试发送 Perl 脚本。该进程正在死去,因为我在另一个 shell 中杀死它,否则 emacs 永远不会从这里回来。

我正在FreeBSD 6.2-RELEASE-p5从 OSX 10.5.7 连接,如果有什么不同的话,2.0.58-pre在 Carbon Emacs 22.3.1 版本中使用 Tramp。

remote-access emacs tramp
  • 1 个回答
  • 1117 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve