Add a ‘grep-files-aliases’ entry for JavaScript
This commit is contained in:
parent
414893c527
commit
73bc2752de
1 changed files with 11 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 20190218221547
|
;; Version: 20190219001218
|
||||||
;; Package-Requires: (oni-company js2-mode js2-refactor flycheck fill-column-indicator tern company-tern fic-mode)
|
;; Package-Requires: (oni-company js2-mode js2-refactor flycheck fill-column-indicator tern company-tern fic-mode)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -31,6 +31,9 @@
|
||||||
(require 'js2-refactor)
|
(require 'js2-refactor)
|
||||||
(require 'whitespace)
|
(require 'whitespace)
|
||||||
|
|
||||||
|
(eval-when-compile
|
||||||
|
(require 'grep))
|
||||||
|
|
||||||
(defun oni-js2-mode-whitespace-mode ()
|
(defun oni-js2-mode-whitespace-mode ()
|
||||||
"Enable whitespace mode with only tabs showing."
|
"Enable whitespace mode with only tabs showing."
|
||||||
(setq-local whitespace-style '(face tabs))
|
(setq-local whitespace-style '(face tabs))
|
||||||
|
@ -56,7 +59,13 @@
|
||||||
(add-to-list 'company-backends 'company-tern)
|
(add-to-list 'company-backends 'company-tern)
|
||||||
|
|
||||||
;;;###autoload(with-eval-after-load 'js2-mode (require 'oni-js2-mode))
|
;;;###autoload(with-eval-after-load 'js2-mode (require 'oni-js2-mode))
|
||||||
;;;###autoload(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
|
|
||||||
|
;;;###autoload
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
|
(with-eval-after-load 'grep
|
||||||
|
(add-to-list 'grep-files-aliases '("js" . "*.js *.jsx *.json")))
|
||||||
|
|
||||||
(provide 'oni-js2-mode)
|
(provide 'oni-js2-mode)
|
||||||
;;; oni-js2-mode.el ends here
|
;;; oni-js2-mode.el ends here
|
||||||
|
|
Loading…
Reference in a new issue