-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ie. comply with the emacs packaging standard Ref: #28
- Loading branch information
1 parent
a571052
commit deb8128
Showing
3 changed files
with
33 additions
and
5 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,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) | ||
|
@@ -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)) | ||
|
@@ -29,3 +42,5 @@ | |
(sorted nil))) | ||
|
||
(provide 'company-gnome-shell) | ||
|
||
;;; company-gnome-shell.el ends here |
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 |
---|---|---|
@@ -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: |
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,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]> | ||
|
@@ -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) | ||
|