dash-docs-el / helm-dash

Browse Dash docsets inside emacs
511 stars 59 forks source link

setq-local dash-docs-docsets does not work #191

Open contrun opened 5 years ago

contrun commented 5 years ago

I tried the following elisp configuration for helm-dash. It does not seem to work.

(use-package helm-dash
  :hook
  (haskell-mode . (lambda () (setq-local helm-dash-docsets '("Haskell"))))
  (rust-mode . (lambda () (setq-local helm-dash-docsets '("Rust"))))
  (scala-mode . (lambda () (setq-local helm-dash-docsets '("Scala"))))
  (python-mode . (lambda () (setq-local helm-dash-docsets '("Python_3"))))
  (emacs-lisp-mode . (lambda () (setq-local helm-dash-docsets '("Emacs_lisp"))))
  (ruby-mode . (lambda () (setq-local helm-dash-docsets '("Ruby"))))
  )

I can confirm helm-dash-docsets is set by C-h v, which told me

helm-dash-docsets’s value is ("Rust")
Local in buffer lib.rs; globally void

Still, helm-dash-at-point did not work. It did work when I activate the docsets with helm-dash-activate-docset.

dfeich commented 3 years ago

The variable is now called dash-docs-docsets. Seemingly the package has been split into a helm-specific and a non-specific core part.