HI Sam, just wondering what does https://github.com/aim-stuff/cmd-key-happy buy you since xterm2 allows you two switch cmd-key to alt-key? many greetings John
On Monday, May 28, 2012 2:46:15 PM UTC+2, Sam Aaron wrote: > > Hi John, > > first of all, you probably should create your own user pack for this > stuff, rather than forking Emacs Live itself - that way you get to take > advantage of updates with ease. > > Secondly, terminals, options keys, meta, OS X, is a tricksy mix. I use > command key happy https://github.com/aim-stuff/cmd-key-happy to allow the > cmd key to be a meta key specifically for iTerm2. > > Thirdly, you might find it easier to use the kbd macro when globally > setting keys i.e.: > > (define-key global-map (kbd "C-+") 'text-scale-increase) > > Finally, the M-[0-9] keys are used for jumping to the associated numbered > buffer via the window-number mode ( > https://github.com/overtone/emacs-live/blob/master/packs/live/foundation-pack/lib/window-number.el) > > > > You can turn off this behaviour with: > > (window-number-meta-mode 0) > > (You can still jump to windows with C-x C-j [0-9]) > > Your global bindings should now work: > > (global-set-key (kbd "M-5") '(lambda () (interactive) (insert "["))) > > I hope that this helps, > > Sam > > -- > http://sam.aaron.name > > > On Monday, 28 May 2012 at 11:08, john wrote: > > > Hi Sam, > > I just tried "Emacs live". I'm running MAC OSX and emacs in a Terminal > with the Option "use option as Meta" > > I have a German Keyboard Layout so I added this to init.el: > > > > (global-set-key "\M-4" '(lambda () (interactive) (insert "\\"))) > > (global-set-key "\M-5" '(lambda () (interactive) (insert "["))) > > (global-set-key "\M-6" '(lambda () (interactive) (insert "]"))) > > (global-set-key "\M-7" '(lambda () (interactive) (insert "|"))) > > (global-set-key "\M-8" '(lambda () (interactive) (insert "{"))) > > (global-set-key "\M-9" '(lambda () (interactive) (insert "}"))) > > > > > > But after restarting emacs the above has no effect? > > Would you know why? > > > > > > Am Sonntag, 27. Mai 2012 17:09:18 UTC+2 schrieb James: > > > Hi, I have GNU Emacs v 23.4 installed on Mac OS X 10.7.4. I've > > > followed the installation instructions for clojure-mode but get stuck > > > at the point where I have to issue the following in Emacs: > > > > > > M-x eval-buffer > > > M-x package-refresh-contents > > > > > > The second line gives me [No match]. > > > > > > I have package.el under ~/.emacs.d/packages/. Under ~/.emacs.d/, I > > > have: > > > > > > auto-save-list/ > > > clojure-test-mode.el > > > init.el > > > clojure-mode.el > > > clojurescript-mode.el > > > packages/ > > > > > > Here's my init.el: > > > > > > (add-to-list 'load-path "~/.emacs.d/") > > > (require 'clojure-mode) > > > > > > (add-to-list 'load-path "~/.emacs.d/packages/") > > > > > > (require 'package) > > > (add-to-list 'package-archives > > > '("marmalade" . "http://marmalade-repo.org/packages/")) > > > (package-initialize) > > > > > > What am I doing wrong? > > > > > > Thanks beforehand, > > > James > > > > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clojure@googlegroups.com (mailto: > clojure@googlegroups.com) > > Note that posts from new members are moderated - please be patient with > your first post. > > To unsubscribe from this group, send email to > > clojure+unsubscr...@googlegroups.com (mailto: > clojure+unsubscr...@googlegroups.com) > > For more options, visit this group at > > http://groups.google.com/group/clojure?hl=en > > > > > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en