emacs - org-mode agenda view
authorPeng Li <seudut@gmail.com>
Tue, 28 Jun 2016 15:43:30 +0000 (23:43 +0800)
committerPeng Li <seudut@gmail.com>
Tue, 28 Jun 2016 15:43:30 +0000 (23:43 +0800)
emacs.d/config.org

index 1ab323a..2ec4ea9 100644 (file)
@@ -674,17 +674,16 @@ All captured file which need next actions are stored in =refile.org=,
 #+END_SRC
 
 *** Agenda Setup
-
+Setting agenda files and the agenda view
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
   (setq org-agenda-files (quote ("~/org/plan.org"
                                  "~/org/gtd.org"
                                  "~/org/work.org")))
-#+END_SRC
 
-Only show today's view in agenda view by default
-
-#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+  ;; only show today's tasks in agenda view
   (setq org-agenda-span 'day)
+  ;; Use current windows for agenda view
+  (setq org-agenda-window-setup 'current-window)
 #+END_SRC
 
 ** Capture