Live data from Hacker News

Ask HN: Emacs users on OS X, what's your setup?

news.ycombinator.com

21–30 of 66 posts

Re: Ask HN: Emacs users on OS X, what's your setup?

#21
post #17

carbon-emacs. It's my first emacs ( I never used emacs on unix or NT). Carbon-Emacs seemed to keep more with emacs' UI guidelines compared to aquamacs. Note I think I'm running carbon emacs, I run the one with the purple logo. I have the option key (windows key on this keyboard) mapped to Hyper. I use Hyper to navigate around emacs. H-(n|p|b|f) move up, down, left, or right one window in a frame H-(N|P|B|F) change th…

I also stumbled upon this yesterday, for making the rest of OS X more like emacs (or VI). OS X already has emacs keybindings for all text areas, but it is missing some functionality (backward|forward-word). OS X has a concept called input managers, which allow you to plumb in your own custom behaviour.

http://subtlegradient.com/articles/2005/12/27/gus-mueller-fl...

http://www.tuaw.com/2007/02/04/vi-input-manager/

Re: Ask HN: Emacs users on OS X, what's your setup?

#22
post #11

Cocoa Emacs.app built from CVS - followed instructions from here: http://www.emacswiki.org/emacs/EmacsForMacOS Scroll down to section 'Build from source' - note the comment to build from the 'nextstep' directory. I just followed the instructions in 'nextstep/INSTALL') This is working for me, so far... a good way to get a 'vanilla' install.

Nightly Cocoa Emacs binaries (Intel-only) are available at http://atomized.org/wp-content/cocoa-emacs-nightly/

Re: Ask HN: Emacs users on OS X, what's your setup?

#23
One thing I find useful is the Its All Text! add-on for Firefox. It lets me use emacs as an external editor for any browser text area. Its ideal for blog entries, web mail or any filling in text in a small text entry area (like this one on HN!).

In addition to giving me all the power of emacs editing, getting the text inside emacs means I can more easily use templates, save stuff off in text files etc.

You need to start an emacs server in your .emacs: (server-start). I also (add-hook 'text-mode-hook 'flyspell-mode) so that I get spell correction. With my setup I just control-e in any text area and it pops open a new buffer in my emacs session.

Re: Ask HN: Emacs users on OS X, what's your setup?

#25
I seem to be the only one here who likes how Aquamacs uses both Mac and Emacs key bindings. I find myself using both. There is probably some reason I sometimes use the Emacs kill/yank/etc. vs. when I use Mac cut/copy/paste, but I'm not sure what it is.

I also use Emacs in Windows and Unix at work, but I imagine it is sitting in front of my Mac that triggers the cmd key bindings in my head. Maybe it's just that, with Aquamacs, whatever key binding first pops into my head will probably work, so I don't have to worry about context switching so much.

I also agree that Option is the right key to use for Meta. I don't think I would ever get used to pressing cmd and not having it activate the Mac key bindings. Probably because I have been using Macs in some capacity since 1987.

The other "Mac-like" thing about Aquamacs is how it pre-bundles so many of the useful modes. Going out and loading each mode you want one at a time and tweaking it just so seems so Linux to me. I like how Aquamacs tries to give you something that Just Works for most of what you want it to do, instead of something more bare bones that you are expected to configure out the wazoo. I discovered both SBCL and Aquamacs when I wanted to learn Common Lisp, and Aquamacs coming with SLIME pre-installed made one less thing I had to fuss with.

Re: Ask HN: Emacs users on OS X, what's your setup?

#27
- Caps-lock == Ctrl - plist hacked so the whole system (at least cocoa-apps) behave emacs-like (Apple is meta) - carbon emacs, because (fullscreen, extensions work, like to have the default GNU set-up as a starting point, and there was 1 thing Cocoa Emacs did not right but I forgot what it was) - I use color themes a lot, I plan to have each major mode auto-choosing one; most of my .emacs pets are not implemented yet, in a way the real work tends to be more fascinating - org-mode as "productivity app" and backbone for DTP

Re: Ask HN: Emacs users on OS X, what's your setup?

#28
I pull every now and then from git://repo.or.cz/emacs.git, and build my own with --with-ns. I was using CarbonEmacs, but multi-tty support is amazing. I have my main Emacs frames running, and if I need to pop into a quick session in a terminal, or SSHd in from another machine, it Just Works.

(Except the theme I'm using has very light colored comments, and I can't see them in 8 color terminal. Anyone have a suggestion for a 256 color terminal app?)

I don't use Mac copy-paste, etc, even though I was a Mac user long before I was an Emacs user. Using C-y and M-y reminds me of the kill ring everytime, where using C-v wouldn't. I do have the clipboard synced to the top of the kill ring though...not sure if that was a default.

I use Command as Meta, and have Caps Lock for Control system-wide.

Re: Ask HN: Emacs users on OS X, what's your setup?

#29

- Caps-lock == Ctrl - plist hacked so the whole system (at least cocoa-apps) behave emacs-like (Apple is meta) - carbon emacs, because (fullscreen, extensions work, like to have the default GNU set-up as a starting point, and there was 1 thing Cocoa Emacs did not right but I forgot what it was) - I use color themes a lot, I plan to have each major mode auto-choosing one; most of my .emacs pets are not implemented yet…

Sorry the formating. Here is it again:

Caps-lock == Ctrl

plist hacked so the whole system (at least cocoa-apps) behave emacs-like (Apple is meta)

carbon emacs (not the one running under the CLI, the .app), because:

(fullscreen, extensions work, like to have the default GNU set-up as a starting point, and there was 1 thing Cocoa Emacs did not right but I forgot what it was)

I use color themes a lot, I plan to have each major mode auto-choosing one; most of my .emacs pets are not implemented yet, in a way the real work tends to be more fascinating

org-mode as "productivity app" and backbone for DTP

Re: Ask HN: Emacs users on OS X, what's your setup?

#30
I started off with MacPorts' Emacs 22.3 package and just used it on the command line. Eventually I moved to a portfile that tracked Emacs CVS, and finally settled on Aquamacs.

I've tried Cocoa Emacs from CVS, but it has one major problem that makes it unusable for me: no fullscreen support. The latest version of Aquamacs does this perfectly. I have an entire space dedicated to Aquamacs, and I send files to it from Terminal with emacsclient.

I too have capslock bound to control. I don't have any other keyboard modifications. I'm used to option/alt working the same in Emacs and every other OS X application (try alt+left/right/backspace/delete in an input box).

My ~/.emacs doesn't have a lot of OS X-specific settings. My favorite thing about my setup right now is having Pyflakes automatically highlight errors in my Python code as I write it. Flyspell in strings and comments is also great.

If you're interested, my ~/.emacs is here: [link redacted]

Post reply on HN