From 5fcdec6b4f33740be755a89f42f6cbada12c355e Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 18 May 2019 19:49:41 -0400 Subject: [PATCH] Add deft and orgmode configuration. Both my dev systems should have a symlinked ~/org directory that are synced using Nextcloud. This added support for that. --- emacs/init.el | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/emacs/init.el b/emacs/init.el index 678165c..07f7343 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -345,11 +345,25 @@ you should place your code here." ("iedit-insert" "firebrick1" (bar . 2))) ) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; ORGMODE + ;; Define the orgmode directory explicitly + (custom-set-variables + '(org-directory "~/org")) + ;; Orgmode-downlaod: sane defaults dir + (setq-default org-download-image-dir "~/org/resources/") + ;; Enable word wrap + (add-hook 'org-mode-hook #'visual-line-mode) + ;; Orgmode: Enable md export + (eval-after-load "org" '(require 'ox-md nil t)) + ;; Deft: Set path to Org-mope Directory + (setq deft-directory "~/org/") + + ;; Load Custom user-config.el file. (when (file-readable-p (expand-file-name "user-config.el" dotspacemacs-directory)) (load-file (expand-file-name "user-config.el" dotspacemacs-directory)) ) - ) )