aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Wilken2023-11-14 23:37:41 +0100
committerTimo Wilken2023-11-14 23:37:41 +0100
commit4b241a2408ed9a7c4dfdfbb54328cc048368af44 (patch)
tree7e077657ef672f626202d2c1159ba3dfac63c297
parentb56d441c096df1f163b1c33bb9f0d6dd081671c4 (diff)
Add Dash docsets for more languages
-rw-r--r--tw/home/files/emacs-init.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/tw/home/files/emacs-init.el b/tw/home/files/emacs-init.el
index 2a19fa8d..d7e375f2 100644
--- a/tw/home/files/emacs-init.el
+++ b/tw/home/files/emacs-init.el
@@ -184,13 +184,16 @@ If CREATE is true and the resulting directory does not exist, create it."
(setq-local evil-lookup-func #'counsel-dash-at-point
counsel-dash-docsets
(cl-case major-mode
+ (lisp-mode '("Common Lisp"))
((python-mode python-ts-mode) '("Python 3"))
(c++-mode '("C++"))
(cmake-mode '("CMake"))
(puppet-mode '("Puppet"))
(yaml-mode '("Ansible"))
(tcl-mode '("Tcl"))
- (common-lisp-mode '("Common Lisp")))))
+ (html-mode '("HTML" "CSS"))
+ ((css-mode css-ts-mode) '("CSS"))
+ (web-mode '("HTML" "CSS")))))
(use-package counsel-dash
:after (dash-docs which-key)
@@ -202,7 +205,8 @@ If CREATE is true and the resulting directory does not exist, create it."
("<leader>di" . counsel-dash-install-docset)
("<leader>da" . counsel-dash-activate-docset)
("<leader>dd" . counsel-dash-deactivate-docset))
- :hook ((python-mode python-ts-mode cmake-mode c++-mode puppet-mode yaml-mode tcl-mode common-lisp-mode)
+ :hook (( lisp-mode python-mode python-ts-mode cmake-mode c++-mode puppet-mode yaml-mode
+ tcl-mode html-mode css-mode css-ts-mode web-mode)
. tw/counsel-dash-is-help)
:config
;; Activate all installed docsets by default.