summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-12-17 10:46:19 -0500
committermattkae <mattkae@protonmail.com>2022-12-17 10:46:19 -0500
commit18cccf8ce0b0ac454b74f6ce81219a42117aa447 (patch)
treedbb58d704c8499d639a2a39578dd0876370efe4b /lisp
parent1ef51c8468872b70eea8335a8166b64711c9fe98 (diff)
Improved CSS mode, removed the dashboard (it was useless), and added go 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