Make some tweaks to Org mode stuff

Namely, open ~/exo/index.org on start-up, and get rid of the message in
the *Scratch* buffer.
This commit is contained in:
Camden Dixie O'Brien 2021-01-01 00:00:30 +00:00
parent 6a081210df
commit 2a73057d2f

View File

@ -225,36 +225,47 @@ needs to be set up to install them if they aren't already.
(require 'org-tempo)) (require 'org-tempo))
#+end_src #+end_src
Org is better suited as scratch space than Emacs lisp, I'd say. Org is better suited as scratch space than Funamental, I'd say.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq initial-major-mode 'org-mode) (setq initial-major-mode 'org-mode)
(setq initial-scratch-message "")
#+end_src #+end_src
Set up a keybinding for =org-agenda= and tell it where to look. I I always want [[file:~/exo/index.org][~/exo/index.org]] to open on start-up, as that's where I
have a bunch of org documents making up a sort of wiki which I keep keep links to whatever I happen to be doing at any given time; one
under =~/exo=. does that by setting [[help:initial-buffer-choice][initial-buffer-choice]]
#+begin_src emacs-lisp #+begin_src emacs-lisp
(define-key global-map (kbd "C-c a") 'org-agenda) (setq initial-buffer-choice "~/exo/index.org")
(setq org-agenda-files
(directory-files-recursively "~/exo" "\.org$"))
#+end_src #+end_src
Log when tasks were marked =DONE=, just for graphs. ** Agenda
#+begin_src emacs-lisp Set up a keybinding for [[help:org-agenda][org-agenda]] and tell it where to look. I
(setq org-log-done t) have a bunch of org documents making up a sort of wiki which I keep
#+end_src under [[file:~/exo][~/exo]].
I often want to see TODO items that aren't scheduled to decide on #+begin_src emacs-lisp
something to do (if I've already done all the scheduled things), so (define-key global-map (kbd "C-c a") 'org-agenda)
it's nice for =org-agenda= to have an option for that. (setq org-agenda-files
(directory-files-recursively "~/exo" "\.org$"))
#+end_src
#+begin_src emacs-lisp Log when tasks were marked =DONE=, just for graphs.
(setq org-agenda-custom-commands
'(("u" "Unscheduled tasks" tags "-SCHEDULED={.+}/!+TODO"))) #+begin_src emacs-lisp
#+end_src (setq org-log-done t)
#+end_src
I often want to see TODO items that aren't scheduled to decide on
something to do (if I've already done all the scheduled things), so
it's nice for [[help:org-agenda][org-agenda]] to have an option for that.
#+begin_src emacs-lisp
(setq org-agenda-custom-commands
'(("u" "Unscheduled tasks" tags "-SCHEDULED={.+}/!+TODO")))
#+end_src
** Source Blocks ** Source Blocks