From 4b241a2408ed9a7c4dfdfbb54328cc048368af44 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Tue, 14 Nov 2023 23:37:41 +0100 Subject: Add Dash docsets for more languages --- tw/home/files/emacs-init.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tw/home/files/emacs-init.el') 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." ("di" . counsel-dash-install-docset) ("da" . counsel-dash-activate-docset) ("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. -- cgit v1.2.3