emacs - add some global keybinding for org mode
authorPeng Li <seudut@gmail.com>
Thu, 21 Jan 2016 12:31:01 +0000 (20:31 +0800)
committerPeng Li <seudut@gmail.com>
Thu, 21 Jan 2016 12:31:01 +0000 (20:31 +0800)
emacs.d/elisp/init-magit.el
emacs.d/elisp/init-org.el

index 4cd481f..1aa9b1d 100644 (file)
@@ -2,7 +2,9 @@
 
 (use-package magit
   :ensure t
-  :defer t)
+  :bind (("M-g s" . magit-status)))
+  
+
 
 
 
index bc3c35b..b135485 100644 (file)
@@ -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 "<f12>") 'org-agenda)
 
 (setq org-agenda-files (quote ("~/Private/org")))