Add elpa packages
This commit is contained in:
parent
2d97873c1c
commit
afd61b5209
197 changed files with 76816 additions and 0 deletions
49
elpa/typescript-mode-0.4/typescript-mode-autoloads.el
Normal file
49
elpa/typescript-mode-0.4/typescript-mode-autoloads.el
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
;;; typescript-mode-autoloads.el --- automatically extracted autoloads -*- lexical-binding: t -*-
|
||||
;;
|
||||
;;; Code:
|
||||
|
||||
(add-to-list 'load-path (directory-file-name
|
||||
(or (file-name-directory #$) (car load-path))))
|
||||
|
||||
|
||||
;;;### (autoloads nil "typescript-mode" "typescript-mode.el" (0 0
|
||||
;;;;;; 0 0))
|
||||
;;; Generated autoloads from typescript-mode.el
|
||||
(put 'typescript-indent-level 'safe-local-variable #'integerp)
|
||||
|
||||
(autoload 'typescript-mode "typescript-mode" "\
|
||||
Major mode for editing typescript.
|
||||
|
||||
Key bindings:
|
||||
|
||||
\\{typescript-mode-map}
|
||||
|
||||
\(fn)" t nil)
|
||||
|
||||
(eval-after-load 'folding '(when (fboundp 'folding-add-to-marks-list) (folding-add-to-marks-list 'typescript-mode "// {{{" "// }}}")))
|
||||
|
||||
(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode))
|
||||
|
||||
(register-definition-prefixes "typescript-mode" '("typescript-"))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil "typescript-mode-test-utilities" "typescript-mode-test-utilities.el"
|
||||
;;;;;; (0 0 0 0))
|
||||
;;; Generated autoloads from typescript-mode-test-utilities.el
|
||||
|
||||
(register-definition-prefixes "typescript-mode-test-utilities" '("font-lock-test" "get-face-at" "test-with-"))
|
||||
|
||||
;;;***
|
||||
|
||||
;;;### (autoloads nil nil ("typescript-mode-pkg.el") (0 0 0 0))
|
||||
|
||||
;;;***
|
||||
|
||||
;; Local Variables:
|
||||
;; version-control: never
|
||||
;; no-byte-compile: t
|
||||
;; no-update-autoloads: t
|
||||
;; coding: utf-8
|
||||
;; End:
|
||||
;;; typescript-mode-autoloads.el ends here
|
||||
8
elpa/typescript-mode-0.4/typescript-mode-pkg.el
Normal file
8
elpa/typescript-mode-0.4/typescript-mode-pkg.el
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(define-package "typescript-mode" "0.4" "Major mode for editing typescript"
|
||||
'((emacs "24.3"))
|
||||
:commit "b369d7d2518fa11760ac3908a383405350cd51d2" :keywords
|
||||
'("typescript" "languages")
|
||||
:url "http://github.com/ananthakumaran/typescript.el")
|
||||
;; Local Variables:
|
||||
;; no-byte-compile: t
|
||||
;; End:
|
||||
63
elpa/typescript-mode-0.4/typescript-mode-test-utilities.el
Normal file
63
elpa/typescript-mode-0.4/typescript-mode-test-utilities.el
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
;;; typescript-mode-test-utilities --- This file contains test utilities for typescript-mode.el
|
||||
|
||||
;;; Commentary:
|
||||
;; See typescript-mode-tests.el and typescript-mode-jsdoc-tests.el
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'ert)
|
||||
(require 'typescript-mode)
|
||||
|
||||
;; Adapted from jdee-mode's test suite.
|
||||
(defmacro test-with-temp-buffer (content &rest body)
|
||||
"Fill a temporary buffer with `CONTENT' and eval `BODY' in it."
|
||||
(declare (debug t)
|
||||
(indent 1))
|
||||
`(with-temp-buffer
|
||||
(insert ,content)
|
||||
(typescript-mode)
|
||||
(goto-char (point-min))
|
||||
;; We need this so that tests that simulate user actions operate on the right buffer.
|
||||
(switch-to-buffer (current-buffer))
|
||||
,@body))
|
||||
|
||||
(defmacro test-with-fontified-buffer (content &rest body)
|
||||
"Fill a temporary buffer with `CONTENT' and eval `BODY' in it."
|
||||
(declare (debug t)
|
||||
(indent 1))
|
||||
`(test-with-temp-buffer
|
||||
,content
|
||||
(font-lock-fontify-buffer)
|
||||
,@body))
|
||||
|
||||
(defun get-face-at (loc)
|
||||
"Get the face at `LOC'.
|
||||
If it is not a number, then we `re-search-forward' with `LOC'
|
||||
as the search pattern."
|
||||
(when (not (numberp loc))
|
||||
(save-excursion
|
||||
(re-search-forward loc)
|
||||
(setq loc (match-beginning 0))))
|
||||
(get-text-property loc 'face))
|
||||
|
||||
(defun font-lock-test (contents expected)
|
||||
"Perform a test on our template.
|
||||
`CONTENTS' is the string to put in the temporary buffer.
|
||||
`EXPECTED' is the expected results.
|
||||
It should be a list of (LOCATION . FACE) pairs, where
|
||||
LOCATION can be either a single location, or list of locations,
|
||||
that are all expected to have the same face."
|
||||
(test-with-fontified-buffer
|
||||
contents
|
||||
;; Make sure our propertize function has been applied to the whole
|
||||
;; buffer.
|
||||
(syntax-propertize (point-max))
|
||||
(dolist (spec expected)
|
||||
(if (listp (car spec))
|
||||
(dolist (source (car spec))
|
||||
(should (eq (get-face-at source) (cdr spec))))
|
||||
(should (eq (get-face-at (car spec)) (cdr spec)))))))
|
||||
|
||||
(provide 'typescript-mode-test-utilities)
|
||||
|
||||
;;; typescript-mode-test-utilities.el ends here
|
||||
2985
elpa/typescript-mode-0.4/typescript-mode.el
Normal file
2985
elpa/typescript-mode-0.4/typescript-mode.el
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue