From bfbf069997174d18b2140031ed0db44e0fdd3508 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 9 Nov 2016 08:38:17 +0100 Subject: [PATCH] Fix sml config * Make it load after org, so org-directory is added correctly to `sml/replacer-regexp-list` * Add Projects to `sml/replacer-regexp-list` * Add Documents to `sml/replacer-regexp-list` in a way that agrees with XDG --- init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.el b/init.el index 182c2de..870328f 100644 --- a/init.el +++ b/init.el @@ -235,7 +235,16 @@ (use-package smart-mode-line :ensure t + :after + org :config + (add-to-list 'sml/replacer-regexp-list + '("^~/Projects/" ":Proj:") + t) + (add-to-list 'sml/replacer-regexp-list + (list (concat "^" (regexp-quote user-documents-directory)) + ":Doc:") + t) (sml/setup)) (use-package company