Skip to content

Instantly share code, notes, and snippets.

@mig
Created December 31, 2009 19:15
Show Gist options
  • Save mig/266865 to your computer and use it in GitHub Desktop.
Save mig/266865 to your computer and use it in GitHub Desktop.
OSX emacs custom
;; emacs-key-bindings.el - bindings that make life easier
(global-set-key (kbd "C-c b") 'eval-buffer)
(global-set-key (kbd "C-x f") 'recentf-ido-find-file)
(global-set-key (kbd "M-s") 'save-buffer)
(global-set-key (kbd "M-z") 'undo)
;; set line commenting to textmate style
(global-set-key (kbd "M-/") 'comment-or-uncomment-region)
;; above commenting binding took over this useful function
(global-set-key (kbd "M-d") 'dabbrev-expand)
;; For Emacs 23.1 in OSX
;(setq ns-command-modifier 'meta)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment