Skip to content

Anders Andersen

Sections
Personal tools
You are here: Home » The (aa) blog » Aquamacs configuration

Aquamacs configuration Aquamacs configuration

Document Actions
Submitted by aa. on 2007-01-08 02:25 PM. Mac
My personal prefered way to configure Aquamacs on my Macs

Aquamacs is the Emacs implementation I'm using on my Macs. Customize Aquamacs includes a few hints and tips on configuring Aquamacs (some added by me). I prefer the following behavior of Emacs on my Macs: A-n should open a new window (frame), and C-x-f should not. A-w should close a window, C-x-k should not (A- is the Apple or command key on your Mac keyboard). This is how it is done in your .emacs file:

(one-buffer-one-frame-mode 0)
(defun my-new-frame-with-new-scratch ()
  (interactive)
  (let ((one-buffer-one-frame t))
    (new-frame-with-new-scratch)))
(defun my-close-current-window-asktosave ()
  (interactive)
  (let ((one-buffer-one-frame t))
    (close-current-window-asktosave)))
(define-key osx-key-mode-map (kbd "A-n") 'my-new-frame-with-new-scratch)
(define-key osx-key-mode-map (kbd "A-w") 'my-close-current-window-asktosave)

I use the function key on my Mac-keyboard as the Meta-key in Emacs, and space should complete words in the mini-buffer:

(setq mac-function-modifier 'meta)
(define-key minibuffer-local-filename-completion-map
  " " 'minibuffer-complete-word)

And finally, this line keeps copy/paste working with OS X:

(setq x-select-enable-clipboard t)

January 8 2007 (aa)

 

Powered by Plone

This site conforms to the following standards: