summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-08-30 12:28:01 +0100
committerAlan Pearce2014-08-30 12:28:01 +0100
commit9d426dc2384cbc622b458bc4bb343db9247298ef (patch)
treeb8e392c861e6908c6c72d72ebdae3fd8ba35afc2 /tag-emacs
parent75ff4072d69f2a331d065d0f15770b8632cc42db (diff)
downloadnixfiles-9d426dc2384cbc622b458bc4bb343db9247298ef.tar.lz
nixfiles-9d426dc2384cbc622b458bc4bb343db9247298ef.tar.zst
nixfiles-9d426dc2384cbc622b458bc4bb343db9247298ef.zip
Emacs: Install jquery-doc
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/Cask1
-rw-r--r--tag-emacs/emacs.d/init.el5
2 files changed, 6 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask
index f8ed11fb..d4b9c525 100644
--- a/tag-emacs/emacs.d/Cask
+++ b/tag-emacs/emacs.d/Cask
@@ -44,6 +44,7 @@
 (depends-on "help-fns+")
 (depends-on "hemisu-theme")
 (depends-on "jinja2-mode")
+(depends-on "jquery-doc")
 (depends-on "js2-mode")
 (depends-on "leuven-theme")
 (depends-on "litable")
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index e7d63545..8e2d0127 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1246,6 +1246,11 @@ mouse-1: Display Line and Column Mode Menu"))))))
             (setq js2-basic-offset 4
                   js2-global-externs '("$"))))
 
+(req-package jquery-doc
+  :defer t
+  :init (progn
+          (add-hook 'js2-mode-hook #'jquery-doc-setup)))
+
 (req-package scss-mode
   :defer t
   :config (progn