Browse files

tweaked and added a number of keybindings

  • Loading branch information...
1 parent dd8371c commit f56b323ce1dcb5d8d558acb51b225cc7306607b5 @jimeh committed Nov 29, 2011
Showing with 25 additions and 4 deletions.
  1. +10 −1 helpers.el
  2. +15 −3 keybindings.el
View
11 helpers.el
@@ -49,6 +49,15 @@
;;
+;; Align Equal Signs
+;;
+
+;; (defun align-equal-signs()
+;; (interactive)
+;; (align-regexp "="))
+
+
+;;
;; Yank Pop Forwards
;;
@@ -68,7 +77,7 @@
;;
-;; Window Resizing
+;; Window Re-sizing
;;
(defun enlarge-window-down () (interactive) (enlarge-window 1))
View
18 keybindings.el
@@ -12,7 +12,7 @@
;; Kill-Ring related.
(global-set-key (kbd "M-Y") 'yank-pop-forwards)
-;; Scroll up/down
+;; Move to beginning/end of buffer
(global-set-key (kbd "s-<up>") 'beginning-of-buffer)
(global-set-key (kbd "s-<down>") 'end-of-buffer)
@@ -31,10 +31,16 @@
;; Undo/Redo (via undo-tree)
(when (require 'undo-tree nil 'noerror)
+ ;; Mac OS X GUI
(global-set-key (kbd "s-z") 'undo-tree-undo)
- (global-set-key (kbd "s-Z") 'undo-tree-redo))
+ (global-set-key (kbd "s-Z") 'undo-tree-redo)
+ ;; Console
+ (global-set-key (kbd "M--") 'undo-tree-undo)
+ (global-set-key (kbd "M-_") 'undo-tree-redo))
(when (require 'textmate nil 'noerror)
+ (global-set-key (kbd "C-c C-f") 'textmate-goto-file)
+ (global-set-key (kbd "C-x C-t") 'textmate-goto-file)
(global-set-key (kbd "M-p") 'textmate-column-up)
(global-set-key (kbd "M-n") 'textmate-column-down))
@@ -44,7 +50,13 @@
;; Duplicate line (via helpers.el)
(global-set-key (kbd "C-x C-d") 'duplicate-line)
-;; Fullscreen (works only with `brew install emacs --cocoa`)
+;; Goto line
+(global-set-key (kbd "C-c C-l") 'goto-line)
+
+;; Align Equal Signs (via helpers.el)
+;; (global-set-key (kbd "M-s-‘") 'align-equal-signs)
+
+;; Fullscreen (requires this patch: https://gist.github.com/1012927)
(global-set-key (kbd "s-<return>") 'ns-toggle-fullscreen)
;; Set/increase/decrease transparency (via helpers.el)

0 comments on commit f56b323

Please sign in to comment.