From: Peng Li Date: Thu, 21 Jan 2016 12:31:01 +0000 (+0800) Subject: emacs - add some global keybinding for org mode X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=f6e4218164f24dfdd02ce6115a235d777d82a1d6;hp=0c9bd743bd7b346dc095d32bf5bf10f21e0b01b4;p=dotfiles.git emacs - add some global keybinding for org mode --- diff --git a/emacs.d/elisp/init-magit.el b/emacs.d/elisp/init-magit.el index 4cd481f..1aa9b1d 100644 --- a/emacs.d/elisp/init-magit.el +++ b/emacs.d/elisp/init-magit.el @@ -2,7 +2,9 @@ (use-package magit :ensure t - :defer t) + :bind (("M-g s" . magit-status))) + + diff --git a/emacs.d/elisp/init-org.el b/emacs.d/elisp/init-org.el index bc3c35b..b135485 100644 --- a/emacs.d/elisp/init-org.el +++ b/emacs.d/elisp/init-org.el @@ -4,11 +4,20 @@ (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode)) +;;; better map to M-c instead of C-c, since M-c is more easy +;;(global-set-key "M-cqc" 'org-capture) or M-o c (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) +;; better use hydra define these +(global-unset-key "\M-o") +(global-set-key (kbd "M-o a") 'org-agenda) +(global-set-key (kbd "M-o b") 'org-iswitchb) +(global-set-key (kbd "M-o c") 'org-capture) + + (global-set-key (kbd "") 'org-agenda) (setq org-agenda-files (quote ("~/Private/org")))