Skip to content

Commit

Permalink
keybinding for expand-region
Browse files Browse the repository at this point in the history
  • Loading branch information
chen bin committed Feb 25, 2012
1 parent 21ee8f3 commit d83cdc8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions init-misc.el
Expand Up @@ -174,9 +174,17 @@

(track-closed-files-mode)

(global-set-key (kbd "C-@") 'er/expand-region)
(global-set-key (kbd "C-M-@") 'er/contract-region)
(global-set-key (kbd "M-SPC") 'set-mark-command) ;borrowed from ergoemacs
; if emacs-nox, use C-@, else, use C-2;
(if window-system
(progn
(define-key global-map (kbd "C-2") 'er/expand-region)
(define-key global-map (kbd "C-M-2") 'er/contract-region)
)
(progn
(define-key global-map (kbd "C-@") 'er/expand-region)
(define-key global-map (kbd "C-M-@") 'er/contract-region)
)
)

(define-key global-map (kbd "C-c SPC") 'ace-jump-mode)

Expand Down
2 changes: 1 addition & 1 deletion init.el
Expand Up @@ -85,7 +85,6 @@
(require 'init-spelling))

(require 'init-marmalade)
(require 'init-misc)

;; Finally set up themes, after most possibly-customised faces have been defined
(require 'init-themes) ; color-themes 6.6.1 has some problem
Expand Down Expand Up @@ -114,6 +113,7 @@
(require 'init-undo-tree)
(require 'init-moz)

(require 'init-misc)
;;----------------------------------------------------------------------------
;; Allow access from emacsclient
;;----------------------------------------------------------------------------
Expand Down

0 comments on commit d83cdc8

Please sign in to comment.