masasam / emacs-easy-hugo

Emacs major mode for managing hugo
https://gohugo.io/tools/editors/#emacs
GNU General Public License v3.0
362 stars 26 forks source link

feat: add easy-hugo-transient.el #61

Closed liuyinz closed 3 years ago

liuyinz commented 3 years ago

Add support for transient state.

Usage:

(require 'easy-hugo)
(easy-hugo-enable-menu)

Call easy-hugo-menu

masasam commented 3 years ago

Hi @liuyinz . Thank you for PR! It is very cool.

However, if you leave it as it is, even if you install essy-hugo from MELPA, you can not use it as it is, so I think that the following measures are required. When a user installs easy-hugo from melpa, it is necessary to change melpa to install easy-hugo-transient.el at the same time. You need to Pull Request to MELPA according to here. If this is a hassle, there is also a way to implement everything in easy-hugo.el.

Let's take a look at implementing everything in easy-hugo.el. If you change this line as follows, you can install easy-hugo from melpa and transient can be installed at the same time.

;; Package-Requires: ((emacs "25.1") (popup "0.5.3") (request "0.3.0") (transient "0.3.6"))

The transient version is set to 0.3.6 because users using melpa-stable will only install 0.3.6.

liuyinz commented 3 years ago

;; Package-Requires: ((emacs "25.1") (popup "0.5.3") (request "0.3.0") (transient "0.3.6"))

Fixed, and add README.md section.