summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/general.el3
-rw-r--r--lisp/go.el10
-rw-r--r--lisp/web.el9
3 files changed, 18 insertions, 4 deletions
diff --git a/lisp/general.el b/lisp/general.el
index 901e132..9516133 100644
--- a/lisp/general.el
+++ b/lisp/general.el
@@ -256,7 +256,7 @@
company-show-quick-access t
company-tooltip-limit 20
company-dabbrev-downcase nil
- company-backends '((company-capf company-gtags company-elisp)) ; TODO: do i need company-irony here
+ company-backends '((company-capf company-gtags company-elisp company-css)) ; TODO: do i need company-irony here
company-vscode-light-icons-margin 1
)
)
@@ -284,6 +284,7 @@
:defer t)
(add-hook 'emacs-lisp-mode-hook #'eldoc-box-hover-at-point-mode t)
+(add-hook 'css-mode-hook #'eldoc-box-hover-at-point-mode t)
(add-hook 'eglot-managed-mode-hook #'eldoc-box-hover-at-point-mode t)
(use-package tree-sitter
diff --git a/lisp/go.el b/lisp/go.el
new file mode 100644
index 0000000..2adb035
--- /dev/null
+++ b/lisp/go.el
@@ -0,0 +1,10 @@
+
+;;; Code:
+(require 'eglot)
+
+(use-package go-mode
+ :config
+ (add-hook 'go-mode-hook 'eglot-ensure))
+
+(provide 'go)
+;;; go.el ends here.
diff --git a/lisp/web.el b/lisp/web.el
index e71673d..d05fa34 100644
--- a/lisp/web.el
+++ b/lisp/web.el
@@ -10,7 +10,6 @@
)
(use-package web-mode
- :mode ("\\.html\\'" . web-mode)
:config (setq
web-mode-markup-indent-offset 2
web-mode-code-indent-offset 2
@@ -20,8 +19,6 @@
)
(my-web-mode-colors)
)
-(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
-(add-to-list 'auto-mode-alist '("\\.css\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.js\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.php\\'" . web-mode))
@@ -93,5 +90,11 @@
(add-to-list 'projectile-globally-ignored-directories "node_modules")
(add-to-list 'projectile-project-root-files "package.json"))
+;; CSS eldoc
+(use-package css-eldoc
+ :commands turn-on-css-eldoc
+ :config
+ (add-hook 'css-mode-hook 'turn-on-css-eldoc))
+
(provide 'web)
;;; web.el ends here