dotfiles/emacs/+org.el

40 lines
1.3 KiB
EmacsLisp
Raw Normal View History

2020-06-02 00:15:08 +00:00
;;; init.el -*- lexical-binding: t; -*-
2020-07-09 06:35:03 +00:00
(custom-set-variables '(org-directory "~/org/"))
2020-06-29 16:27:35 +00:00
(setq
deft-directory org-directory
org-download-image-dir (concat org-directory "resources")
org-roam-directory org-directory)
2020-07-09 06:35:03 +00:00
(setq org-agenda-files (list
(concat org-directory "work/todo.org")
(concat org-directory "todo.org")
)
)
;(org-agenda-files (file-expand-wildcards (concat org-directory "*". )"~/ref/*.org")
;; Automatically Scan normal locations code for projectes.
;; - `src` is used on my linux machine
;; - `Code` is used on my mac machine
;; - `opt` is used on my where I checkout, and compile, and complain about it
;; not running right, but refuse to the the documentation.
2020-07-06 00:01:38 +00:00
(require 'seq)
(setq projectile-project-search-path
(seq-filter 'file-directory-p '("~/src" "~/Code" "~/opt")))
;; Make sort reasonable.
(setq projectile-sort-order 'access-time)
;; recursive search for deft
2020-06-29 16:27:35 +00:00
(setq deft-recursive t)
2020-07-06 00:01:38 +00:00
2020-06-02 00:15:08 +00:00
; Enable word wrap
(add-hook 'org-mode-hook #'visual-line-mode)
;Custom bullets
(setq org-superstar-headline-bullets-list '("" "" "" "" "" "" "" "" ""))
;; allow md export
(eval-after-load "org" '(require 'ox-md nil t))
;; org-journal-file-format
(customize-set-variable 'org-journal-date-format "%A, %d %B %Y")