Skip to content

Commit

Permalink
Prepare for melpa packaging
Browse files Browse the repository at this point in the history
Ie. comply with the emacs packaging standard

Ref: #28
  • Loading branch information
olejorgenb committed Apr 25, 2019
1 parent a571052 commit deb8128
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
17 changes: 16 additions & 1 deletion local/company-gnome-shell/company-gnome-shell.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
;;; comany-gnome-shell-mode.el --- completion -*- lexical-binding: t -*-
;;; company-gnome-shell.el --- Gnome Shell runtime js completion -*- lexical-binding: t -*-

;; Copyright (C) 2017-2019 Tor Hedin Brønner and Ole Jørgen Brønner

;; Author: Tor Hedin Brønner <[email protected]>
;; Ole Jørgen Brønner <[email protected]>
;; Homepage: https://github.com/paperwm/gnome-shell-mode
;; Version: 0.1
;; Package-Requires: ((emacs "24") (company "20181105") (gnome-shell-mode "0.1"))

;; This file is not part of GNU Emacs

;;; Code:

(require 'gnome-shell-mode)
(require 'company)
Expand All @@ -21,6 +33,7 @@

(defun company-gnome-shell (command &optional arg &rest ignored)
(interactive (list 'interactive))
(message "%s" command)
(cl-case command
(interactive (company-begin-backend 'company-gnome-shell))
(prefix (company-gnome-shell--prefix))
Expand All @@ -29,3 +42,5 @@
(sorted nil)))

(provide 'company-gnome-shell)

;;; company-gnome-shell.el ends here
12 changes: 12 additions & 0 deletions local/gnome-shell-mode/gnome-shell-mode-pkg.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(define-package "gnome-shell-mode" "0.1"
"Major mode for developing gnome-shell javascript"
'((emacs "24") (js2-mode "20180724.801") (flycheck "20181018.1021"))
:authors
'(("Tor Hedin Brønner", "[email protected]")
("Ole Jørgen Brønner", "[email protected]"))
:url "https://github.com/paperwm/gnome-shell-mode")


;; Local Variables:
;; no-byte-compile: t
;; End:
9 changes: 5 additions & 4 deletions local/gnome-shell-mode/gnome-shell-mode.el
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
;;; gnome-shell-mode.el --- Tight integration of emacs with gnome-shell -*- lexical-binding: t -*-

;; Based on notion-wm-mode which again is loosely based on notion.el by Stefan
;; Reichör

;; Filename: gnome-shell-mode.el
;; Authors:
;; - Tor Hedin Brønner <[email protected]>
Expand Down Expand Up @@ -36,10 +33,14 @@
;; Comments / suggestions welcome!

;;; History:
;;

;; Based on notion-wm-mode which again is loosely based on notion.el by Stefan
;; Reichör

;;; Code:

(require 'cl)

(eval-when-compile (require 'rx))

(require 'js2-mode)
Expand Down

0 comments on commit deb8128

Please sign in to comment.