I am using a Mac 10.9.5 and Emacs 24.4, installed with macports and aliased as

alias emacs  /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs

At the moment, when I have an emacs file open and I hit Cmd-N, emacs opens a replicate of the file already open. I am wondering if there is a way to modify the .emacs file so I can open new, Untitled empty files by using Cmd-N, like when using Aquamacs or MacVim.

In addition, when using aquamacs or MacVim, Cmd-T opens a new, Untitled tab next to the already existing (see screen capture attachedenter image description here).

In my emacs window, cmd-T opens the font menu. Is there a way to get cmd-T to behave in Emacs as in MacVim or aquamacs?

Thanks in advance for your time!

  • Please do some background research before posting. A quick google search for "Emacs keybindings" gives you the manual page and Mickey's nice tutorial among the first hits. You may also like Xah Lee's tutorial, which has a portion about Mac keybindings as well. – Dan Jan 6 '15 at 16:34
  • Hi Dan. Thanks for the reply. My apologies if the question is so trivial. I did try a few things before but they did not work, although I did not know about masteringemacs.org/article/mastering-key-bindings-emacs . Thanks again. – Javier Jan 6 '15 at 16:38
  • it's okay since you're just starting and learning how this place works. As a general rule, it's best to do some background research to the best of your ability and, once you get stuck, post a question (but let us know what you've tried so far!). I doubt anyone will fault you for being new provided that you put a good-faith effort into solving your problem ahead of posting. – Dan Jan 6 '15 at 16:41
  • thanks. For example, I just tried this : stackoverflow.com/questions/25791605/… and it did work. However, so far I have not found the cmd-T equivalent. Surely I'll find it soon. Thanks again :) – Javier Jan 6 '15 at 16:54
  • On Mac, the command key is understood by emacs as the 'super' key. Thus, command-t would be (kbd "s-t"). – Sean Allred Jan 6 '15 at 18:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.