aquamacs

Tramp using ssh does not source .bash_profile / .profile

蹲街弑〆低调 提交于 2020-06-25 10:00:45
问题 I'm using Aquamacs (graphical emacs for OSX using emacs 24 and tramp version 2.2.3) to edit some files on a remote server. Tramp is set up to use ssh and works fine in terms of editing files. It fails when it comes to compiling because the compiler is not in the path. It seems like tramp does not source any of the profile files like .profile or .bash_profile . /bin/sh is a link to /bin/bash so bash should be the shell used by tramp. A shell started within emacs on the remote server won't

如何在Emacs中设置字体大小?

久未见 提交于 2020-03-06 18:28:19
我也想将字体大小保存在我的 .emacs 文件中。 #1楼 我对控制台emacs(emacs -nw)感到满意,现代vterm实现(例如gnome-terminal)往往具有更好的字体支持。 另外,如果您习惯了这一点,则可以使用tmux,因此即使没有X,也可以在远程服务器上使用完整环境。 #2楼 在X11中打开emacs,转到菜单选项,选择“设置默认字体...”,更改字体大小。 在同一菜单中选择“保存选项”。 做完了 #3楼 在AquaMacs中, CMD + 和 CMD - 调整当前缓冲区的字体大小。 #4楼 zoom.cfg 和 global-zoom.cfg 提供字体大小更改绑定(来自EmacsWiki) C-或C-mousewheel-up:增加字体大小。 C- +或C-mousewheel-down:减小字体大小。 C-0将字体大小恢复为默认值。 #5楼 Firefox和其他程序允许您使用C- +和C--增大和减小字体大小。 我设置了.emacs,以便通过添加以下代码行来具有相同的功能: (global-set-key [C-kp-add] 'text-scale-increase) (global-set-key [C-kp-subtract] 'text-scale-decrease) 来源: oschina 链接: https://my.oschina.net/u

What's the magic behind the ELPA?

只愿长相守 提交于 2020-01-12 14:29:47
问题 I use Aquamacs, and I use ELPA that installs files in ~/.emacs.d/elpa? What's the magic behind this ELPA? I mean, without ELPA, I should download and install the packages in a specific directory, and add those two lines in .emacs. (add-to-list 'load-path "PACKAGE_DIRECTORY") (require 'PACKAGE) But, with ELPA, I don't see anything added to .emacs or /Users/smcho/Library/Preferences/Aquamacs Emacs/{Preferences.el, customizations.el}. How is this possible? Added This is what I found with

What's the magic behind the ELPA?

旧时模样 提交于 2020-01-12 14:29:28
问题 I use Aquamacs, and I use ELPA that installs files in ~/.emacs.d/elpa? What's the magic behind this ELPA? I mean, without ELPA, I should download and install the packages in a specific directory, and add those two lines in .emacs. (add-to-list 'load-path "PACKAGE_DIRECTORY") (require 'PACKAGE) But, with ELPA, I don't see anything added to .emacs or /Users/smcho/Library/Preferences/Aquamacs Emacs/{Preferences.el, customizations.el}. How is this possible? Added This is what I found with

How can you have folds for a LaTeX file in XEmacs?

只谈情不闲聊 提交于 2019-12-23 03:11:28
问题 I would like to have automatic folds for comments in my AquaEmacs. 回答1: have a look at hs-minor-mode. it's not automatic though. for a more automatic approach, i guess you could customize the hideshow mode the following way: hide comments via hs-hide-comments-when-hiding-all assign a function which hides nothing to hs-hide-all-non-comment-function and then use hs-hide-all to hide all comments. have not tried it. just an idea. check out the hideshow mode page at emacswiki as well. 回答2: You

What is the best Emacs workspaces plugin?

≯℡__Kan透↙ 提交于 2019-12-20 09:56:06
问题 By workspace, I mean - I need to save the state of my open buffers (possibly in a user specified workspace file) and quickly switch to another set of open buffers, e.g. to continue working on files related to another project. Is there an Emacs plugin which allows this? Which one would you recommend? 回答1: I use a combination of save-visited-files and workgroups. In fact, workgroups will probably do most of what you want by itself. My config: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

In C/C++ mode in Emacs, change face of code in #if 0…#endif block to comment face

旧巷老猫 提交于 2019-12-18 04:39:05
问题 I'm trying to add functionality found in some other code editors to my Emacs configuration, whereby C/C++ code within #if 0...#endif blocks is automatically set to the comment face/font. Based on my testing, cpp-highlight-mode does something like what I want, but requires user action. It seems like tying into the font-lock functionality is the correct option to make the behavior automatic. I have successfully followed examples in the GNU documentation to change the face of single-line regular

Emacs (Cocoa Emacs) vs Aquamacs for running Clojure on Mac OS X

谁都会走 提交于 2019-12-17 15:35:55
问题 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?

how to get GNU Emacs spellcheck to find user's personal dictionary on OSX?

二次信任 提交于 2019-12-12 19:08:47
问题 I switched from Aquamacs to GNU Emacs. Before, when Aquamacs thought a word was misspelled, I could right-click to "Learn Spelling." (I also had an option to Ignore Spelling to get it to unflag the word for that buffer only.) In GNU Emacs, I'm using flyspell-mode with ispell, with aspell as the dictionary. But I notice that the words I previously added to my dictionary (e.g. my name) are getting flagged as misspelled. How do I get GNU Emacs to find and use the personal word list I've already

ECB context menu in Aquamacs

一世执手 提交于 2019-12-12 01:59:56
问题 ECB (Emacs Code Browser) has context menu to add file, delete file etc. The context menu is opened when clicking right mouse button. The problem is Aquamacs intercepts that mouse button event. When we click right mouse button in Aquamacs, it opens its own context menu. (In the Emacs downloaded from emacsformacosx.com, the context menu is opened correctly.) How to open ECB context menu in Aquamacs? Is there a way to disable Aquamacs default context menu? Or is there a way to tell ECB to use