blob: dc240ae1d6d5c56ff2ba93c9c4bd0dff7d2ce1fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
;;; keybindings.el --- rogs default keybindings configuration
;;
;;; Commentary:
;;
;; My default configuration for keybindings
;;
;;; Code:
;; F5 = Goto line
(global-set-key [f5] 'goto-line)
;; F6 = browse-url-of-file
(global-set-key [f6] 'browse-url-of-file)
;; NeoTree
(global-set-key [f8] 'neotree-toggle)
;; Magit
(global-set-key [f7] 'magit-status)
;; Helm
(with-eval-after-load "helm"
(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action))
(global-set-key (kbd "M-i") 'helm-swoop)
(global-set-key (kbd "C-x b") 'helm-buffers-list)
(global-set-key (kbd "C-x r b") 'helm-bookmarks)
(global-set-key (kbd "M-x") 'helm-M-x)
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
(global-set-key (kbd "C-x C-f") 'helm-find-files)
;; Helm flycheck
(eval-after-load 'flycheck
'(define-key flycheck-mode-map (kbd "C-c ! h") 'helm-flycheck))
;; Multiple cursors mode
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)
(define-key mc/keymap (kbd "<return>") nil)
;; Projectile mode
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
;; Org mode
(global-set-key "\C-ca" 'org-agenda)
(global-set-key (kbd "<f12>") 'org-capture)
(provide 'rogs-keybindings)
;;; rogs-keybindings.el ends here
|