forked from blastura/dot-emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aj-org.el
58 lines (46 loc) · 1.91 KB
/
aj-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
49
50
51
52
53
54
55
56
57
58
(defun aj-org-mode-hook()
;;(flyspell-mode t)
;;(ispell-change-dictionary "sv" nil)
(auto-fill-mode 1)
(local-set-key (kbd "C-<return>") 'org-export-as-html-and-open)
(local-set-key (kbd "C-u C-<return>") 'org-export-as-html)
(local-set-key (kbd "C-<tab>") 'other-window)
(local-set-key (kbd "C-S-<tab>") (lambda ()
(interactive) (other-window -1))))
(add-hook 'org-mode-hook 'aj-org-mode-hook)
;; Custom
(setq org-startup-folded t)
(setq org-level-color-stars-only nil)
(setq org-fontify-emphasized-text t)
(setq org-log-done 'time)
;; Hide leading stars face
(setq org-hide-leading-stars t)
(custom-set-faces
'(org-hide ((((background light)) (:foreground "dim gray"))
(((background dark)) (:foreground "dim gray")))))
(setq org-directory "~/Documents/org")
(setq org-default-notes-file "~/Documents/org/notes.org")
;;(setq remember-annotation-functions '(org-remember-annotation))
;;(setq remember-handler-functions '(org-remember-handler))
;;(add-hook 'remember-mode-hook 'org-remember-apply-template)
(set-variable 'org-export-html-style-include-default nil)
(set-variable 'org-export-html-style
"<link rel=\"stylesheet\" type=\"text/css\" href=\"/Users/anton/.emacs.d/org-mode.css\" />")
;; (defun process-file (file)
;; "Read the contents of a file into a temp buffer and then do
;; something there."
;; (when (file-readable-p file)
;; (with-temp-buffer
;; (insert-file-contents file)
;; (goto-char (point-min))
;; (while (not (eobp))
;; ;; do something here with buffer content
;; (forward-line)))))
;; (set-variable 'org-export-html-style
;; "<link rel=\"stylesheet\" type=\"text/css\">"
;; ~/.emacs.d/org-mode.css
;; "</link>")
(set-variable 'org-export-with-section-numbers nil)
;; Clocking
(setq org-clock-history-length 35)
(provide 'aj-org)