From b82ef2cee67bc5891d79fa3b16706ec247f9205e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 20 May 2018 12:14:36 +0200 Subject: [PATCH] Add open-manual command (docs don't exist yet though!) --- core/autoload/help.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/autoload/help.el b/core/autoload/help.el index e4c311b96..783492d12 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -41,6 +41,9 @@ (stylus-mode :lang web)) "TODO") +(defvar doom-docs-dir (concat doom-emacs-dir "docs/") + "TODO") + ;; ;; Helpers @@ -164,3 +167,8 @@ whose car is the list of faces and cadr is the list of overlay faces." (t (and (or faces overlays) (list faces overlays)))))) + +;;;###autoload +(defun doom//open-manual () + (interactive) + (find-file (expand-file-name "index.org" doom-docs-dir)))