-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathorg-key-bindings.el
56 lines (51 loc) · 1.96 KB
/
org-key-bindings.el
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
52
53
54
55
56
;;; org-key-bindings --- Key bindings in Org -*- lexical-binding: t -*-
;;
;;; Copyright (C) 2012, 2013 Vedang Manerikar
;;
;; Author: Vedang Manerikar <[email protected]>
;; Created on: 13 Dec 2012
;; Keywords: configuration, org-mode
;; URL: https://github.com/vedang/org-mode-crate
;; Version: DEV
;;
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;
;;; Commentary:
;; Refer to installation instructions in the README document.
;;
;;; Code:
(global-set-key (kbd "<f12>") 'org-agenda)
(global-set-key (kbd "C-c l") 'org-store-link)
(global-set-key (kbd "C-c C-M-x") 'org-toggle-link-display)
(global-set-key (kbd "C-c t") 'org-todo)
(global-set-key (kbd "<f6>") 'org-capture)
(global-set-key (kbd "C-c c") 'org-capture)
(global-set-key (kbd "<S-f5>") 'widen)
(global-set-key (kbd "C-<f11>") 'org-clock-goto)
(global-set-key (kbd "C-c C-x C") 'org-clone-subtree-with-time-shift)
(define-key org-mode-map (kbd "C-c C-x C") 'org-clone-subtree-with-time-shift)
(defun bh/hide-other ()
(interactive)
(save-excursion
(org-back-to-heading 'invisible-ok)
(outline-hide-other)
(org-cycle)
(org-cycle)
(org-cycle)))
;; @TODO: Remove `bh/hide-other' in the future if `outline-hide-other'
;; proves to be better.
;; (global-set-key (kbd "<f9> h") 'bh/hide-other)
(global-set-key (kbd "<f9> h") 'outline-hide-other)
(provide 'org-key-bindings)
;;; org-key-bindings.el ends here