Skip to content

Commit

Permalink
Change to show a message, because easy-hugo--version doesn't work on …
Browse files Browse the repository at this point in the history
…Debian
  • Loading branch information
masasam committed Mar 3, 2021
1 parent 2548373 commit b3c9ca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions easy-hugo.el
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
;;; easy-hugo.el --- Write blogs made with hugo by markdown or org-mode -*- lexical-binding: t; -*-

;; Copyright (C) 2017-2020 by Masashi Miyaura
;; Copyright (C) 2017-2021 by Masashi Miyaura

;; Author: Masashi Miyaura
;; URL: https://github.com/masasam/emacs-easy-hugo
;; Version: 3.9.54
;; Version: 3.9.55
;; Package-Requires: ((emacs "25.1") (popup "0.5.3") (request "0.3.0"))

;; This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -2374,7 +2374,7 @@ output directories whose names match REGEXP."
(unless (file-directory-p (expand-file-name easy-hugo-postdir easy-hugo-basedir))
(error "%s%s does not exist!" easy-hugo-basedir easy-hugo-postdir))
(when (> 0.25 (easy-hugo--version))
(error "Please install hugo 0.25 or higher version."))
(message "Please install hugo 0.25 or higher version."))
(setq easy-hugo--mode-buffer (get-buffer-create easy-hugo--buffer-name))
(setq easy-hugo--draft-list nil)
(switch-to-buffer easy-hugo--mode-buffer)
Expand Down

0 comments on commit b3c9ca2

Please sign in to comment.