2017-07-05 02:33:41 +02:00
|
|
|
;;; org/org-notebook/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;; (add-hook 'org-load-hook '+org|init-notebook t)
|
2017-04-05 14:29:25 -04:00
|
|
|
|
|
|
|
;; While I program, write or plan, I want easy access to notes of various kinds,
|
|
|
|
;; such as major-mode/language specific notes, or project-specific notes. They
|
2017-07-05 02:33:41 +02:00
|
|
|
;; can be accessed via `+org-notebook/find-major-mode-notes' and
|
|
|
|
;; `+org-notebook/find-project-notes'.
|
2017-04-05 14:29:25 -04:00
|
|
|
|
2017-07-05 02:33:41 +02:00
|
|
|
(defvar +org-notebook-dir (concat +org-dir "notes/")
|
2017-04-05 14:29:25 -04:00
|
|
|
"The directory where the notes are kept.")
|
|
|
|
|
2017-07-05 02:33:41 +02:00
|
|
|
(defvar +org-notebook-code-dir (concat +org-notebook-dir "code/")
|
2017-04-05 14:29:25 -04:00
|
|
|
"The directory where programming notes and snippets are kept.")
|
|
|
|
|
2017-07-05 02:33:41 +02:00
|
|
|
(defvar +org-notebook-project-dir (concat +org-notebook-dir "projects/")
|
2017-04-05 14:29:25 -04:00
|
|
|
"The directory where project notes are kept.")
|
|
|
|
|
2017-07-05 02:33:41 +02:00
|
|
|
|
|
|
|
(defvar +org-notebook-code-alist
|
2017-04-05 14:29:25 -04:00
|
|
|
'((js2-mode . "javascript"))
|
|
|
|
"An alist mapping certain modes (symbols) to their org notes directory name.
|
|
|
|
If a mode isn't here, it's guessed by stripping out the -mode suffix and
|
|
|
|
replacing '+' characters with 'p's.")
|
|
|
|
|
|
|
|
|
2017-07-05 02:33:41 +02:00
|
|
|
;; (defun +org|init-notebook ())
|