forked from lest/emacs-config
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrc-org.el
48 lines (44 loc) · 1.35 KB
/
rc-org.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(setq load-path (cons "vendor/org-mode/lisp" load-path))
(setq load-path (cons "vendor/org-mode/contrib/lisp" load-path))
(require 'org-install)
(setq org-special-ctrl-k t
org-completion-use-ido t
org-support-shift-select t)
(setq org-log-done t)
(setq org-directory "~/Dropbox/org")
(setq org-mobile-directory "~/Dropbox/MobileOrg/")
(setq org-agenda-files (list "~/Dropbox/org/daily.org"
"~/Dropbox/org/zachet.org"))
(setq org-mobile-inbox-for-pull "~/Dropbox/org/inbox.org")
(defun my-org ()
"Create org-mode windows open files"
(interactive)
(setq default-frame-alist
`((width . ,140)
(height . ,45)
(top . ,5)
(left . ,5)
(user-position . t)
))
(delete-other-windows)
(split-window-horizontally)
(setq eik-links-win-w 60)
(shrink-window-horizontally 52)
(find-file "~/Dropbox/org/daily.org")
(dedicated-mode)
(other-window 1)
(find-file "~/Dropbox/org/zachet.org")
(split-window-vertically)
(split-window-horizontally)
(other-window 1)
(find-file "~/Dropbox/org/")
(dedicated-mode)
(other-window 1)
(find-file "~/Dropbox/org/")
(other-window 1)
(other-window 1)
(dedicated-mode)
(end-of-buffer) ; Go to the end of buffer
(outline-previous-visible-heading 1) ; Find the last heading
(org-cycle) ; Make subtree visible
)