forked from 0xekez/htmlz-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: specify dependencies in a declarative way
as described in https://www.gnu.org/software/emacs/manual/html_node/elisp/Simple-Packages.html It fixes: 0xekez#3
- Loading branch information
Showing
1 changed file
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
;;; htmlz-mode --- Simple real-time Emacs html preview | ||
;;; htmlz-mode.el --- Simple real-time Emacs html preview -*- lexical-binding:t -*- | ||
|
||
;; Copyright (C) 2020 Zeke Medley | ||
|
||
;; Author: Zeke Medley <[email protected]> | ||
;; Keywords: html | ||
;; Version: 0.2 | ||
;; Version: 0.3 | ||
;; Package-Requires: ((websocket "1.14")) | ||
;; URL: https://github.com/ZekeMedley/htmlz | ||
|
||
;;; Commentary: | ||
|
@@ -18,18 +19,9 @@ | |
;; | ||
;;; Code: | ||
|
||
(defun require-package (package) | ||
"Install given PACKAGE if it was not installed before." | ||
(if (package-installed-p package) | ||
t | ||
(progn | ||
(unless (assoc package package-archive-contents) | ||
(package-refresh-contents)) | ||
(package-install package)))) | ||
|
||
(defun htmlz-init-dependencies () | ||
"Initialize htmlz dependencies." | ||
(require-package 'websocket) | ||
(require 'websocket) | ||
(require 'package) | ||
(require 'browse-url) | ||
(require 'websocket)) | ||
|