Skip to content

Commit

Permalink
Move Elisp to setup-ox-hugo.el that does not need to be in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Aug 28, 2018
1 parent c726ab9 commit 1bfef80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Makefile
Expand Up @@ -108,12 +108,9 @@ emacs-batch:
@echo ""
@echo "$(ORG_FILE) ::"
@$(EMACS) --batch --eval "(progn\
(setq debug-ignored-errors (remq 'user-error debug-ignored-errors))\
(toggle-debug-on-error)\
(setenv \"OX_HUGO_ELPA\" \"$(OX_HUGO_ELPA)\")\
(when (> (length \"$(TIMEZONE)\") 0) (setenv \"TZ\" \"$(TIMEZONE)\"))\
(setenv \"LANGUAGE\" \"en_US.UTF-8\")\
(setq-default make-backup-files nil)\
(load-file (expand-file-name \"setup-ox-hugo.el\" \"$(OX_HUGO_TEST_DIR)\"))\
)" $(ORG_FILE) \
-f $(FUNC) \
Expand Down
7 changes: 6 additions & 1 deletion test/setup-ox-hugo.el
@@ -1,11 +1,16 @@
;; Time-stamp: <2018-02-22 14:58:32 kmodi>
;; Time-stamp: <2018-08-28 13:20:23 kmodi>

;; Setup to export Org files to Hugo-compatible Markdown using
;; `ox-hugo' in an "emacs -Q" environment.

;; Some sane settings
(setq-default require-final-newline t)
(setq-default indent-tabs-mode nil)
(setq-default make-backup-files nil)

;; Toggle debug on error, including `user-error'.
(setq debug-ignored-errors (remq 'user-error debug-ignored-errors))
(toggle-debug-on-error)

(defvar ox-hugo-test-setup-verbose nil
"When non-nil, enable printing more messages from setup-ox-hugo.el.")
Expand Down

0 comments on commit 1bfef80

Please sign in to comment.