Skip to content

Commit

Permalink
(feat): Switch to a minor-mode for the dev-suite (org-roam#805)
Browse files Browse the repository at this point in the history
* (feat): Switch to a minor-mode for the dev-suite

Co-authored-by: N V <[email protected]>

Co-authored-by: N V <[email protected]>
  • Loading branch information
zaeph and progfolio authored Jun 12, 2020
1 parent eca0727 commit 2eb0aac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .dir-locals.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

((emacs-lisp-mode
(eval . (require 'org-roam-dev))
(sentence-end-double-space . nil)))
(eval . (org-roam-dev-mode))))
11 changes: 9 additions & 2 deletions org-roam-dev.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@
;;
;;; Code:
(require 'emacsql)
(emacsql-fix-vector-indentation)
(provide 'org-roam-dev)

;;;###autoload
(define-minor-mode org-roam-dev-mode
"Minor mode for setting the dev environment of Org-roam."
:lighter " ORD"
(when org-roam-dev-mode
(emacsql-fix-vector-indentation)
(setq-local sentence-end-double-space nil)))

(provide 'org-roam-dev)
;;; org-roam-dev.el ends here

0 comments on commit 2eb0aac

Please sign in to comment.