summary refs log tree commit diff
path: root/emacs.d
diff options
context:
space:
mode:
authorFranck Cuny <fcuny@twitter.com>2019-04-08 08:40:53 -0700
committerFranck Cuny <fcuny@twitter.com>2019-04-08 08:40:53 -0700
commit645dc2bb08a612d356cfd59075cc371f25e2996d (patch)
tree028d391535310e1227d82005d85914f0c07e24cc /emacs.d
parent[emacs] Update configuration related to git. (diff)
downloademacs.d-645dc2bb08a612d356cfd59075cc371f25e2996d.tar.gz
[emacs] Back to using org-mode.
I've really made a mistake when I stopped using org-mode. At the time
I probably went overboard by trying to do to much with it. Now I need
to rethink a workflow and how to use it efficiently for work and
personal stuff.
Diffstat (limited to '')
-rw-r--r--emacs.d/custom/fcuny-org.el24
-rw-r--r--emacs.d/init.el2
2 files changed, 26 insertions, 0 deletions
diff --git a/emacs.d/custom/fcuny-org.el b/emacs.d/custom/fcuny-org.el
new file mode 100644
index 0000000..8b47fa0
--- /dev/null
+++ b/emacs.d/custom/fcuny-org.el
@@ -0,0 +1,24 @@
+(use-package org
+  :ensure t
+  :hook ((org-mode . visual-line-mode)
+         (org-mode . org-indent-mode))
+  :custom
+  (org-startup-indented t)
+  (org-directory "~/GDrive/notebooks")
+  (org-default-notes-file (concat org-directory "/inbox.org"))
+  (org-agenda-start-on-weekday 1)
+  (org-capture-templates
+   (quote (("t" "Todo" entry
+            (file+headline "~/GDrive/notebooks/personal/todo.org" "New")
+            "* TODO %?\n")
+           ("T" "Work Todo" entry
+            (file+headline "~/GDrive/notebooks/twitter/todo.org" "New")
+            "* TODO %?\n")
+           ("d" "Diary" entry
+            (file+olp+datetree "~/GDrive/notebooks/personal/diary.org")
+            "* %U %?\n" :tree-type week)
+           ("D" "Work Diary" entry
+            (file+olp+datetree "~/GDrive/notebooks/twitter/diary.org")
+            "* %U %?\n" :tree-type week)))))
+
+(provide 'fcuny-org)
diff --git a/emacs.d/init.el b/emacs.d/init.el
index cdc8e98..44b4a47 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -31,6 +31,8 @@
 (require 'fcuny-git)
 (require 'fcuny-flycheck)
 
+(require 'fcuny-org)
+
 (require 'fcuny-docker)
 (require 'fcuny-json)
 (require 'fcuny-protobuf)