expanduser ( "~/Library/Preferences/Aquamacs Emacs/osxkeys.el" ) if os. fix (qwerty_to_dvorak ) # Write out the changes.ĭst = os. M = Modifier (src ) # Dvorak to QWERTY mappings # It was easier for me to type it this way.ĭvorak_to_qwerty = ĭvorak_to_qwerty = dict ( ) Src = "/Applications/Aquamacs Emacs.app/Contents/Resources/site-lisp/macosx/osxkeys.el" split ( ' ', 1 ) if parts = 'shift' :Ĭ = parts if len (c ) = 1 : if c in "? `',][" : Tail = "%s %s -> %s" % (alreadydone, char, newchar ) Line = rows if alreadydone in line : continue Print raise ValueError ( "Unbalanced keys: %r" % diff ) def fix (self, map ) : Print "Value but not a key: %r" % value_not_a_key symmetric_difference (values ) if diff : print print "Key but not a value: %r" % key_not_a_value unlink (backname ) except OSError, err : if err. is_changed : print "No changes to write." return # Backup if os. close ( ) def write (self, filename ) : if not self. #!/usr/bin/python -utWall # -*- coding: utf-8 -*- import os, sys, re, errno I forget about this and delete my preferences again. Hopefully this will be useful for someone. Into ~/Library/Preferences/Aquamacs Emacs/. The osxkeys.el shipped with Aquamacs and then writes this patched version Out what osxkeys.el was I decided to find a better solution.Īnd here it is A horribly kludgy python script that essentially automatesĭavidswelt’s workaround: based on a keymap hardcoded in the script it patches ~/Library/Preferences/Aquamacs Emacs/ directory.Īfter spending a little time with Time Machine to recover the files and figure The latest, 1.6, didn’t like my preference settings. Since then, Aquamacs has gone through several iterations. This can be worked around by dropping in a custom osxkeys.el inĪ year ago, I did this customization by hand and pretty much forgot about. It’s a Carbon application, not a Cocoa application. This was invaluable when I first started using OS-XĪquamacs cannot natively understand the command keys for this layout because DQ is dvorak except when you use the command key. I suggest you sit down and read some of the docs for ECB and CEDET.Keyboard layout (AKA DQ) and Aquamacs doesn’t like the command key bindings Restart aquamacs and you should have ECB available, including docs.Symlink the info-help directory to info and create a dir file.Disadvantage: ECB- and semantic-options first available after starting ECB): WARNING: This doesn't work with the CVS version of ECB unless edit Makefile and run make. Disadvantage: Increasing loadtime2): ( require 'ecb ) If you want to load the ECB first after starting it by ecb-activate (Advantage: Fast loading3. If you want to load the complete ECB at (X)Emacs-loadtime (Advantage: All ECB-options available after loading ECB. ( add-to-list 'load-path "/Users/YOUR USERNAME/Library/Application Support/Aquamacs Emacs/ecb-2.40" ) Choose one of the following. Untar the file in ~/Library/Application Support/Aquamacs Emacs:
That (yet?!) so you need to install it yourself.
Semantic isĪ full install of CEDET is required for ECB and Aquamacs doesn’t come with
I don’t fully grok them all, but some are nice. I need to get the full path of the file that Im editing with emacs.Is there a function for thatIf not, what would be the elisp function for getting thatHow can I copy the result (path name) to a clipboard so that I can reuse itIm using Mac OS X and Aqumacs. Installed Aquamacs.app into /Applications/ CEDETĬEDET is a collection of emacs tools to make Note before continuing: I’m using the version numbers I got installing
The new 2.x series no longer requires theĭvorak hack I posted about earlier (yay!)Ģ.1 has a nice new mechanism for plugins, so here are instructions for making When you get ECB, you need a version newer thanĢ.40, which at this time means getting the CVS version. I still recommend creating the site-start.elįile for CEDET but beware the differences between CEDET shipped with EmacsĪnd the stand-alone version. Aquamacs 2.3a (the latest at this time) has CEDET already in it skip the