Minimize use of arrow keys
This commit is contained in:
parent
f2d68d324d
commit
c3b829a4bf
2 changed files with 13 additions and 2 deletions
11
01mac.el
11
01mac.el
|
|
@ -57,10 +57,21 @@
|
|||
(global-set-key (kbd "C-c <up>") 'windmove-up)
|
||||
(global-set-key (kbd "C-c <down>") 'windmove-down)
|
||||
|
||||
;; The same, but without using arrow keys
|
||||
(global-set-key (kbd "C-c [") 'windmove-left)
|
||||
(global-set-key (kbd "C-c ]") 'windmove-right)
|
||||
(global-set-key (kbd "C-c {") 'windmove-up)
|
||||
(global-set-key (kbd "C-c }") 'windmove-down)
|
||||
|
||||
|
||||
;; Switch to previous and next buffer
|
||||
(global-set-key (kbd "C-c s <left>") 'previous-buffer)
|
||||
(global-set-key (kbd "C-c s <right>") 'next-buffer)
|
||||
|
||||
(global-set-key (kbd "C-c s [") 'previous-buffer)
|
||||
(global-set-key (kbd "C-c s ]") 'next-buffer)
|
||||
|
||||
|
||||
;; Kill current buffer and window
|
||||
(global-set-key (kbd "C-c q") 'kill-buffer-and-window)
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@
|
|||
(delete-selection-mode 1)
|
||||
|
||||
;; Dash
|
||||
(define-key prog-mode-map (kbd "C-d") 'dash-at-point) ;; Jump to dash definition
|
||||
(define-key text-mode-map (kbd "C-d") 'dash-at-point) ;; Jump to dash definition
|
||||
(define-key prog-mode-map (kbd "C-s C-d") 'dash-at-point) ;; Jump to dash definition
|
||||
(define-key text-mode-map (kbd "C-s C-d") 'dash-at-point) ;; Jump to dash definition
|
||||
(add-to-list
|
||||
'dash-at-point-mode-alist
|
||||
'(enh-ruby-mode . "ruby,rubygems,rails")) ;; Configure lookup for Ruby mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue