问题标签 [aquamacs]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
macos - 如何在 aquamacs(或 emacs)中使用 mac 'command' 键定义快捷方式
如何使用 mac 命令键定义 aquamacs 键盘快捷键。我希望 'command'-k 像 ctrl-k (杀戮线)一样行事。提前致谢!
emacs - Emacs (Cocoa Emacs) vs Aquamacs for running Clojure on Mac OS X
I used Aquamacs so far, and I need to install and run Clojure using SLIME. I googled to get some way to use Clojure on SLIME of Aquamacs, but without success.
Questions
- Is it possible to install Clojure on Aquamacs? Or, can you guess why Clojure on Aquamacs doesn't work?
- Is it normal that Emacs and Aquamacs can't share the same ELPA?
- Is it possible to use ELPA to install Conjure on Emacs/Aquamacs?
- I was told that one can use 'lein swank' to run as a server, do you know how to do that?
Sequences that I tried (and half succeeded)
I tried with Mac OS X Emacs, and by following the steps I could make it work. I mean, I could run Clojure with SLIME.
Emacs for Mac OS X
Step 1) Install ESK.
- Git clone and copy all the files into the
.emacs.d
directory - Add the following code to
.emacs
and relaunch
Step2) Install using ELPA
- M-x package-list-packages to select packages
- Install
- clojure-mode, clojure-test-mode
- slime, slime-repl
- swank-clojure
- M-x slime to install the clojure
- Add the following code to
.emacs
and relaunch
Aquamacs
Now I could use Clojure on Emacs, I tried the same(or very similar) method to run Clojure on Aquamacs once more.
Step 1) Install ESK for Aquamacs
- Copy the files to ~/Library/Preference/Aquamacs Emacs
- Modify "~/Library/Preferences/Aquamacs Emacs/Preferences.el" to add the following
Step2) * Follow the same step as before to install all the (same) packages, but "M-x slime" gives me the following error message. "Symbol's function definition is void: define-slime-contrib"
ELPA
I tried to combine the packages from Emacs and Aquamacs, but they don't combine. I thought I could use the ELPA itself, not from the ESK to make it shared.
The result was not good, as ELPA couldn't download the swank-conjure package.
Success - Running Aquamacs/Clojure with 'lein swank'.
Please refer to this.
emacs - 在 emacs 中匹配 Aquamacs 的设置
如何在 Mac OS X emacs 的 AucTeX 中匹配 Aquamacs 的设置?
由于某种原因,我尝试将 AucTeX 安装到 Mac OS X 的 emacs。
对于预装了 AucTeX 的 Aquamacs,一切都很酷。
- 它运行 SKIM pdf 查看器来查看结果。
- 它可以使用 pdfsync 在 Aquamacs 和 SKIM 之间进行反向/正向链接。
emacs - 同时使用两个 emacs(Cocoa emacs 和 Aquamacs)
由于clojure setup,我的 Mac 上碰巧有两个 emacs 。
问题是 Cocoa emacs 和 Aquamacs 使用相同的 ~/.emacs.d,但是 Cocoa emacs 的 ELPA 和 Aquamacs 的 ELPA 不兼容,因此某些文件被覆盖并且对它们都不能使用。
有没有办法告诉 Aquamacs 不要将 ~/.emacs.d 用于 ELPA?我的意思是,我可以更改 ~/.emacs.d 以外的默认 ELPA 目录吗?
我使用Aquamacs Starter Kt,但似乎在 init.el 中使用了 ~/.emacs 目录。
emacs - 为什么我的 *scratch* 缓冲区在 aquamacs emacs 中保存数据?
在常规的 emacs 中,我的理解是,如果你杀死了暂存缓冲区,当你切换回它时它会是空的,或者当你关闭并重新启动 emacs 时,它会是空的。使用 Aquamacs,它似乎保留了缓冲区内容。为什么会发生这种情况?
emacs - 如何将 clojure 源文件连接到 Emacs 上正在运行的 clojure repl?
我目前正在向 Tomcat 容器中的现有 J2EE webapp 添加功能,并且正在使用 Clojure 编写我的添加。我的设置很简单:我只是添加对 clojure 生成的静态方法的调用,并从 clojure 端编写所有艰苦的工作。构建过程包括编译 clojure 代码 ( lein uberjar
),然后在类路径中使用该 jar 编译 java 代码。
在 webapp init 中,我调用了一个生成的类,该类使用(swank/start-repl)
. 我希望能够将我的 Aquamacs 粘液连接到该服务器,并从那里进行交互工作(到目前为止,我不会尝试任何需要 Java 端重新编译的东西)。但是我有一个我不太了解的情况。如果我执行 a \M-x slime-connect
,我会收到一个 REPL 提示(在被告知没有劣质 lisp 进程之后,我认为这没关系,因为劣质 lisp 进程在 emacs 控制之外运行)。我可以完美地评估表单,我什至可以检查诸如my.own.namespace/my-var
. 但是,如果我访问一个包含已编译 clojure 代码的文件,我似乎无法让 slime 将其识别为它的来源。考虑一个简单的 clojure 文件:
假设这是编译并包含在 webapp 加载的 uberjar 中,我可以 eval/inspect my.namespace/*secret*
。但是如果我尝试在代码缓冲区内进行评估,Slime 会认为我在user
命名空间中(这甚至可以说得通!)。但现在我只剩下一个工作选项——我必须评估——文件中的所有表格!\C-c \C-l
(加载源文件)不会做任何事情 - 显然只是返回 nil 并且不输出任何其他内容。编译一切似乎就是这样做的——它会编译,如果找到错误就会显示错误,但不会改变我的命名空间。最奇怪的是\C-~
(同步包和目录),它使用 Common Lisp 完成了我想要的,但在这里它永久冻结了 clojure REPL。
始终可以选择切换到 REPL,键入(in-ns 'my.namespace)
,然后一切正常。但是当 clojure 文件的数量越来越多时,这根本不够实用(因为代码缓冲区的命名空间不会自动更改!)
那么,我的问题是,我是否缺少基本的命令/配置——或者是否有明显的原因导致这种行为发生。
macos - 为 Aquamacs shell 定义 bash 别名
对于 Emacs,您可以在 .emacs.d/init_bash.sh 中定义您的 shell 模式别名,但 Aquamacs(OS X 10.5 上的 2.0)似乎没有使用它。还有其他地方可以定义这些吗?
emacs - 为什么 clojure 在没有任何设置的情况下为我的 Aquamacs 以“Mx slime”开头?
我的 Mac 上运行着 Aquamacs。
我为 Aquamacs 安装了 ESK,它在 ~/.emacs.d/elpa 安装了 ELPA。使用 ELPA,我安装了 clojure-mode/clojure-est-mode/slime/slime-repl/swank-clojure。
问题是当我运行“Mx slime”时,clojure 就会运行。为什么是这样?我很好奇,因为我的 .emacs 甚至 /Users/smcho/Library/Preferences/Aquamacs Emacs/{Preferences.el,customizations.el} 中都没有任何粘液设置。我的意思是,我没有 (setq lower-lisp-program "clojure") 或其他东西。
或者,它与我的“swank-clojure”安装有关吗?我在inferior-lisp缓冲区中看到了类似的东西。
emacs - ELPA 背后的魔力是什么?
我使用 Aquamacs,我使用 ELPA 将文件安装到 ~/.emacs.d/elpa?
这个 ELPA 背后的魔力是什么?我的意思是,如果没有 ELPA,我应该下载包并将其安装在特定目录中,然后将这两行添加到 .emacs 中。
(添加到列表'加载路径“PACKAGE_DIRECTORY”)
(需要'PACKAGE)
但是,对于 ELPA,我没有看到任何添加到 .emacs 或 /Users/smcho/Library/Preferences/Aquamacs Emacs/{Preferences.el,customizations.el} 的内容。这怎么可能?
添加
这就是我在 Aquamacs 中发现的。
- Aquamacs 读取 ~/Preference/Aquamacs Emacs/Preference,它有“(add-to-list 'load-path kitfiles-dir)(require 'init)”,它读取启动套件。
- start kit 的 init.el 有“(require 'package)(package-initialize)”
- ~/Library/Preferences/Aquamacs Emacs/aquamacs-emacs-starter-kit/vendor 有 package.el
我猜初始化文件没有改变,但是包管理器读取 ~/.emacs.d/elpd/* 来自动初始化,因为我在每个文件中都看到了 ***-autoloads.el 。
添加2
使用 emacs 24,似乎该包是预先构建的。我只需要在 .emacs 或 .emacs.d/init.el 中有这些行就可以让 ELPA 工作。来自本网站的提示。