Skip to content

Instantly share code, notes, and snippets.

@mig
Created February 17, 2010 17:16
Show Gist options
  • Save mig/306820 to your computer and use it in GitHub Desktop.
Save mig/306820 to your computer and use it in GitHub Desktop.
Ubuntu custom emacs
;; custom for ubuntu
(setq gem_home "/home/mig/.gem")
(setenv "GEM_HOME" gem_home)
;; Swap alt and meta in emacs
; (setq x-super-keysym 'meta)
(setq x-select-enable-clipboard t)
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
(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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment