load org mode only when needed
authorDon Armstrong <don@donarmstrong.com>
Wed, 10 Jan 2018 19:29:44 +0000 (11:29 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 10 Jan 2018 19:29:44 +0000 (11:29 -0800)
emacs_el/configuration/don-configuration.org

index 7b21a6d..fe33c77 100644 (file)
@@ -837,11 +837,11 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori
 #+END_SRC
 ** Agenda Configuration
 #+BEGIN_SRC emacs-lisp
-  ;; The following lines are always needed. Choose your own keys.
-  (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
-  (global-set-key "\C-cl" 'org-store-link)
-  (global-set-key "\C-ca" 'org-agenda)
-  (global-set-key "\C-cb" 'org-iswitchb)
+  :mode "\\.\\(org\\|org_archive\\|txt\\)$"
+  :bind (("C-c l"  . org-store-link)
+         ("C-c a"  . org-agenda)
+         ("C-c b"  . org-iswitchb)
+  :config
   (setq-default org-log-done 'time)
   (setq-default org-agenda-ndays 5)